angularjs-model Questions

3

Solved

For some reason the initialized value doesn't appear in the field, but the second field without the ng-pattern does work. any ideas? angular.module('app', []).controller('MainCtrl', function($sco...

5

Lets take a look to my directive: angular.module('main').directive('datepicker', [ function() { return { require: '?ngModel', link: function(scope, element, attributes, ngModel) { ngModel.$mod...

1

Solved

I have an async validator: app.directive('validateBar', ['$http', function($http) { function link($scope, $element, $attrs, ngModel) { ngModel.$asyncValidators.myValidator = function(value) { r...
Predella asked 17/11, 2014 at 17:47

2

Solved

I have a list of objects in my scope and want to iterate over them, show some of their properties in ordered-by-some-property way and change them. ng-repeat is used to display textboxes binded to ...
Vachil asked 5/5, 2015 at 21:11

2

I am working on an angular project where I need to create a form based on an array of questions. I would like to create ng-model for each question in the array. So I have come up with something li...
Trypanosome asked 11/1, 2014 at 10:49

2

Solved

In this example, I have an input with an attached directive. The directive is meant to display messages next to the input. There's another input and a button to add messages. Once some messages are...
Josephus asked 12/12, 2013 at 23:46
1

© 2022 - 2024 — McMap. All rights reserved.