The ngModel directive binds an input,select, textarea (or custom form control) to a property on the scope using NgModelController, which is created and exposed by this directive.

learn more… | top users | synonyms

0
votes
3answers
23 views

Update $scope collection upon closing modal

I'm having the most difficult time trying to find a way to make sure the parent scope's collection is updated with the saved information from a modal. The parent has a collection of event speakers, ...
0
votes
3answers
17 views

Filter a model when there is pagination

My situation right now is that I have a model that loads like 50 car informations. In the view I have a sidebar with some filters like, year, model, mileage, etc.. When I filter those, everything ...
1
vote
2answers
235 views

Changing value of an input date picker with button angular

I have have an input field which is attached an Angular UI datepicker. Below that, I added 2 buttons to change date, "day by day". Here is the input part (just after in my page): <p ...
1
vote
2answers
291 views

opening a modal without using a button in angularJS which is accessible to all the controllers

<div class="modal-content"> <div class="modal-header"> <h3 class="modal-title">Standard message modal</h3> </div> <div class="modal-body"> ...
0
votes
2answers
223 views

Correct approach for angularjs modal transferring data to outer controller?

Im wondering what is the correct approach about software design & best practice for angularjs modals. In my application I have the main window which is using its own controller, and there I have a ...
0
votes
2answers
115 views

Binding repeatable form subset to model

On a registration form I allow a user to enter zero or more phone numbers. Each phone number consists of a prefix and a number, these are two fields per phone number. The user may decide how many ...
0
votes
2answers
140 views

Definition of model in frontend JS context

I usually work backend development, where a model is defined as an in-memory representation of either some database query operation or internal, pre-initialized data fields. It is processed by ...
0
votes
1answer
34 views

Highlight all inputs that where programatically changed in AngularJS

I have a form with fields that are editable by the user. Some of them, until they are $dirty (edited by the user) will update automatically with suggested values. I want to mark this change (flash ...
0
votes
1answer
162 views

AngularJS Initialize model directly from view using strongly typed object in asp.net MVC

Is it not possible to use strongly typed objects in asp.net mvc to initialize ng-model properties as currently the view value is getting cleared as soon as ng-model property is getting bind to view.I ...
0
votes
1answer
71 views

Can we update JSON files on the fly in Angularjs?

Angular JS seems to have a problem updating content in .json files on the fly. Specifically I have to restart the server (locally) in order for angular to recognise the new data. This seems to be how ...
0
votes
1answer
84 views

Asterisks in input field indicating length with angularjs

I'm using angularjs for a app I'm working on. I need an input field with a specific length of characters a user has to enter. To indicate how long the input should be, I would like to have an input ...
0
votes
1answer
327 views

Angular.js ngTable select input as a column not showing the existing value

I'm using Angular.js 1.2 and I'm trying to use a Select input in the cell of an ngTable. The Option list populates but the ngModel directive doesn't seem to select the item for display. This is what ...
2
votes
0answers
60 views

CKEditor prevents framework's and native events propagation

I am having an angular directive that is compiled and inserted into CKEditor. Furthermore i have a widget plugin that upcasts those directives to widgets and allows few of their fields for editing. In ...
1
vote
0answers
20 views

AngularJS ngModelOptions updateOn 'submit' validateOn 'default'

Is there any way how to trigger validation when using ngModelOptions? My use-case is to have a form with all fields updating the ngModel on submit (due to the fact that I would like to revert the ...
1
vote
0answers
145 views

Why ngModel.$render is not getting invoked?

EDIT 1: Fixed a bug, but still not working. element.val(ngModel.$viewValue || ''); should have been: dateInput.val(ngModel.$viewValue || ''); EDIT 2: The problem seems to be due to the isolate ...
0
votes
0answers
55 views

AngularJS: How do I access $scope objects after being dynamically created

I have created dynamic filters based on the dynamic columns in the table: using the code below to dynamically generate the binding model: <div data-ng-repeat="label in bluePrintItems[0].labels" ...
0
votes
0answers
100 views

Tinymce editor becomes empty when ng-repeat list is reordered

This is a simplified example of a bug we faced in our project recently. I have a list of objects with "name" and "position" properties and wanna use TinyMCE editor instead of textarea to display ...
0
votes
0answers
68 views

Angular Model with Directives

So I'm getting an error in my template with it not liking the ng-model="event.{{name}}". I was wondering how I can get the model to be ng-model="event.date_end". I am also wondering if this jquery ...
0
votes
0answers
400 views

angularjs select element binding

I've bound newParty.party_type.code model to dropdown. On changing its value from controller it is adding another option with value ? number:2138 ? even if option with value 2138 is already contained ...