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
1 answer

Use filter with angularjs controller

I use this code to add a property in the filter when a checkbox is cheked. I tried to do this in the controller, to take the stateparams value and preselect the…
user567
  • 3,712
  • 9
  • 47
  • 80
0
votes
1 answer

Why did the model Array here not update in the DOM after updating in the Controller?

http://plnkr.co/edit/7OnKAGvVNXWLwN5fZqJu?p=preview I'm setting up a question related to infinite scroll and noticed that when I update the $scope.tags array I have once the tags have been scrolled all the way up, that the tags don't actually…
Leon Gaban
  • 36,509
  • 115
  • 332
  • 529
0
votes
1 answer

Creating model from multiple models in AngularJS

I have this basic fiddle which is a cut down version of what I have on my site. I was wondering if there is a way to bind the table rows dynamically to a text area to create a ng-model composed of serveral other ng-model data? I would like to to…
user1231232141214124
  • 1,339
  • 3
  • 16
  • 22
0
votes
0 answers

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 "name". Besides, the list is ordered by "position"…
0
votes
2 answers

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 know it will work if I initialize that value form…
0
votes
1 answer

AngularJS: Why ng-model scope's variable is not shown in inspector if input field is empty?

I have an input form like this:
dragonmnl
  • 14,578
  • 33
  • 84
  • 129
0
votes
2 answers

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 show(), hide() & destroy functions for the modal. a…
0
votes
1 answer

accessing values from an object model using 'controller as' $scope angularJS

I'm attempting to grab the user.firstName and user.lastName, add a watch collection to those models, and spit back out a userName. I can't seem to communicate between the two, I think I'm using scope and self incorrect. I'm pretty new and…
Tuesdave
  • 669
  • 2
  • 8
  • 26
0
votes
3 answers

Prevent model update before save

I go the list view page click on edit of any element. Change something on textbox and click cancel. This navigates to list view but the entry is now updated even without me saving. Route (function () { 'use strict'; …
aWebDeveloper
  • 36,687
  • 39
  • 170
  • 242
0
votes
1 answer

AngularJS: does the directory structure (e.g. modular programming) influence loading time?

Can modular programming contribute to lower loading time and how? I read about ways to Modularize AngularJS applications. In general the reason for doing so is to have a good structure when creating large apps, such that one does not have to scroll…
AMG
  • 704
  • 1
  • 8
  • 20
0
votes
1 answer

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 Angularjs runs it's model domain, but if I want…
Conor Ryan
  • 159
  • 1
  • 2
  • 12
0
votes
1 answer

Angularjs-more module dependency issue

I am using more dependency modules for various application.I want to show the ngtable using directive. but this was not working. sometimes no error, some time i am getting following the error 'DemoCtrl' controller is not defined.how to solve this…
0
votes
2 answers

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 numbers he wants to provide, the add more numbers…
KrekkieD
  • 967
  • 9
  • 23
0
votes
1 answer

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 field that indicates the number of characters by…
0
votes
1 answer

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 my table looks like at the moment:
Josh Russo
  • 3,080
  • 2
  • 41
  • 62