Questions tagged [angularjs-model]

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.

From Angularjs documentation:

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.

90 questions
0
votes
0 answers

Passing array with ng-model

I'm having a problem getting the values from multiple input fields, into a single string. The way I am currently trying to do it is to make each input field an index in the array. I made an array, guess, then I'm breaking down a string into…
Lehi
  • 15
  • 5
0
votes
1 answer

Why can't I bind the initiated application variable's value to the HTML input control using 'ng-bind'?

I'm a newbie to this thing called 'AngularJS' so I got stuck at one point. Consider the below code sample :
0
votes
0 answers

Angular nested directives scope not shared

I have my input directive which takes the input value from html, and updates the angular model: .directive('input', function($parse) { return { restrict: 'E', require: '?ngModel', link: function(scope, element, attrs) { if…
Kim T
  • 5,770
  • 1
  • 52
  • 79
0
votes
1 answer

AngularJS - Using Model in Controller causing Model to update

I have an Angular application where in I'm pulling from a model some data which is saved on the load of the app. For simplicity sake, I've explicitly defined the data which is being pulled. The issue I have is that in one of my controllers I am…
Gary
  • 395
  • 2
  • 7
  • 24
0
votes
1 answer

How do I make sure that each instance of my angular model has certain characteristics?

I have some tasks to do . I want to make sure that each task has a maximumFundPossible property of $1000 constant, a currentfund property that is variable as it will be updated as tasks are being funded , a budget property that is variable but…
codigomonstruo
  • 1,081
  • 1
  • 11
  • 45
0
votes
1 answer

Angular.js values not being saved in the scope from textbox

I have this html markup:
Title…
0
votes
1 answer

Unable to track and bind to input elements created with ng-repeat

Here's my template, I am dynamically creating input elements to be used in a form. When I submit the form nothing is passed to the update() function designated on the submit element as nothing appears to bound to the scope. I have tried track by id,…
LaserBeak
  • 3,257
  • 10
  • 43
  • 73
0
votes
1 answer

Not able to display number of rows in a table based on drop down or input field

I have a table with 'n' number of rows and by default i have set to display 10 rows in each page as the table is a paginated column. I am now trying to include a text box where user can enter number of rows that has to displayed in each page as…
0
votes
1 answer

Prevent backspace from navigating back in AngularJS Model Window

I am using angular model service ($modal) display pop-up. I am facing a problem like when user click backspace on the model window, parent window gets navigating to previous page. How do i resolve this?
Velkumar
  • 446
  • 1
  • 8
  • 20
0
votes
1 answer

calling a function from controller inside other controller

I am display a modal where if the user click on delete button I want to call delete() from controller A inside controller B I am refactoring the Todo App example code at AngularJS website (based on what I have learned so…
Ahmad Saleh
  • 879
  • 2
  • 10
  • 20
0
votes
3 answers

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, and the modal adds one speaker to the event. I…
Will Strohl
  • 1,646
  • 2
  • 15
  • 32
0
votes
1 answer

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 the border of the input etc) so that the user can…
Daniel
  • 341
  • 6
  • 24
0
votes
1 answer

Angularjs update model partially in input value

i've a strange behaviour with a model. $scope.ev = temp; The result in html…
amagtra
  • 45
  • 4
0
votes
3 answers

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 works fine, but, since the model is getting pretty…
0
votes
1 answer

Watch a custom directives inner html in angular

I have a global search variable that is used by the whole app newspaper.controller("MainController", function($scope) { $scope.search = {query:''}; }); Then I have a contenteditable div that I want to bind to…