Skip to main content

All Questions

0 votes
1 answer
76 views

Convert user input with function and ng-model in AngularJS

Im trying to implement in an app, a unit converter from mm to inches and viceversa. This is part of a larger design app and the idea is that the user can work in mm-inch and use a button to change the ...
rockstiff's user avatar
  • 383
0 votes
0 answers
26 views

Ionic + Angular

Help please, I tried to fix it without success. I'm using Ionic framework and Angular. I have a form which is opened when I click on a Sidemenu. So the problem is when I add a formControllerName on ...
Thijo's user avatar
  • 1
1 vote
2 answers
1k views

Values are duplicated into all input field which is created using the ng-repeat and ng-model

I am using the ng-repeat to create the input fields dynamically, everything seems to be working fine and the input fields are created but due to some reason when I enter some value into that created ...
BATMAN_2008's user avatar
  • 3,580
1 vote
1 answer
541 views

how to get ng-model value in directive

I have written a directive in AngularJS, and used the input type number with min-max and ng-model attribute. I have used isolated scope. In the directive, I have written a blur event. I am getting min-...
Rohit Hushare's user avatar
0 votes
1 answer
499 views

How to assign value to input type file for edit form in angular js

I am having problem in assigning the value to form which in Angular JS, On click of the edit i am assigning values to form fields using the ngModel. I am getting the error in chrome for input type ...
vinayakkyadav's user avatar
0 votes
1 answer
63 views

How to bind multiple options/select in Angular 4

I'll try my best to explain my scenario. I have a search filter which works when used in the following format in Angular 4: <select [(ngModel)]="city_filter" (change)="applyFilter('city',$event....
Elaine Byene's user avatar
  • 4,152
0 votes
1 answer
6k views

Two way Binding in Angular using Select List

I wish to set up two-way binding in Angular v5, specifically using an Angular Material select list. I basically have the following sample code which is a snippet from a HTML table and assume when ...
tonyf's user avatar
  • 35.6k
0 votes
0 answers
113 views

Angular ng-model $parsers/$formatters are not dynamically changed

I have a directive that take the ng-model value and convert the value to mm/inch unit depend on scope.unit that can change by the user selection I prefer to use ngModel.$formatters ngModel.$parsers ...
cheziHoyzer's user avatar
  • 5,051
1 vote
1 answer
134 views

Angular Directive access internal ng-model controller

I have a custom wrapper directive for angular-moment-picker. I use cutrom model attribute (dp-model) and an internal ng-model (dpModelObject). I want to access this internal model controller for set ...
user6028908's user avatar
1 vote
1 answer
93 views

First ngModel in ngRepeat being assigned with custom directive

I've created a custom directive as a replacement for the <select> element (we have potentially millions of results, so I've split it into pages). One of the uses for this is to assign a value ...
Zach Ross-Clyne's user avatar
-1 votes
2 answers
403 views

ng-model-binding not updating when changed

[ng-repeat is used to form this table] Want to do following tasks : Step1- input in PromoPriceTxt3 text box should reflect in other text boxes below it too. i.e PromoPriceTxt4 Step2- The change in ...
Jeremy's user avatar
  • 1
0 votes
1 answer
166 views

Rename require ngModel in Angular directive

I have developed some directives and in them I use a certain pattern for naming attributes. All of the attributes are prefixed with "fs-" for example <div fs-attrtibute="value"></div> Is ...
Raymond's user avatar
  • 41
3 votes
1 answer
1k views

Angular2 upgradeComponent how to do 2-way binding

I have a large application that I am just beginning to upgrade to Angular 2. We use a lot of third party and homegrown custom directives that we will replace in Angular 2, but do not have the time to ...
kevinrstone's user avatar
0 votes
1 answer
58 views

Custom character separator with ngModel is not working properly

I want to format the entered number inside a textbox with a character separator in AngularJs. I have created a directive to do the formatting. The directive is generating proper output but cannot ...
Mithun Sen's user avatar
1 vote
1 answer
2k views

Angular: Get ng-model by ng-attr-id?

Is there a way to get ng-model value by ng-attr-id ? I'm making a Comment/Reply box and I would like to get the value of the current reply. Here is my html-- <div class="comments-list" ng-show="...
Amadou Beye's user avatar
  • 2,838

15 30 50 per page
1
2 3 4 5
9