All Questions
Tagged with angularjs-directive angular-ngmodel
127 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 ...
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 ...
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 ...
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-...
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 ...
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....
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 ...
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 ...
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 ...
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 ...
-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 ...
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 ...
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 ...
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 ...
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="...