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
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
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
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
1 vote
0 answers
442 views

AngularJS 1.5 component get parent ngModel

I can't change ngModel defined in $ctrl. It looks like this: 1. I have next code, defining component in index.html: <div ng-controller="appControllerData"> ... <div ng-controller="...
srgg6701's user avatar
  • 2,048
0 votes
1 answer
306 views

When should ng-model be used as opposed to binding to a property in angularjs?

I am building a directive that I will be using in several places in my application. It is a combination of a multi-select field and type-ahead. To pass data back and forth to the multi-select portion, ...
nephiw's user avatar
  • 2,046
2 votes
1 answer
566 views

Is it possible to perform a two way binding on a custom directive with ngModel?

My use case is completely different. When I strip off all the other factors, it boils down to this. Say I have the following input element <input type="text" [customDirective] [(ngModel)]="...
Abhijith Nagaraja's user avatar
0 votes
1 answer
87 views

Using ng-model-options with ngModelController

I am trying to delay validation of an custom textbox component. I only want to validate the input on blur. The existing component does not use ng-model inside the input but uses the ngModelController ...
techer's user avatar
  • 181
0 votes
1 answer
2k views

Change template in angular directive dynamically

I have a controller, that has some variables: .controller('DataProvider', function($scope, $timeout, $mdSidenav, $mdDialog, $mdMedia, $mdToast, selectedData) { $scope.provider; $scope....
Triple -B's user avatar
  • 271

15 30 50 per page
1
2 3 4 5
8