Linked Questions
19 questions linked to/from Ng-model does not update controller value
859
votes
22
answers
311k
views
What is lexical scope?
What is a brief introduction to lexical scoping?
1051
votes
3
answers
158k
views
What are the nuances of scope prototypal / prototypical inheritance in AngularJS?
The API Reference Scope page says:
A scope can inherit from a parent scope.
The Developer Guide Scope page says:
A scope (prototypically) inherits properties from its parent scope.
So, does a ...
15
votes
5
answers
54k
views
ng-model is undefined in controller
I'm using ionic and I have the following view:
<ion-view hide-nav-bar="true" ng-controller="loginController" class="login-view">
<ion-content class="padding">
<div class="row ...
2
votes
1
answer
6k
views
Angular $scope variables not updating in controller
My variables are not updating in the controller and I have no idea why.
In the view I have this code
<div ng-if="state_1">
<input ng-model='amount'> {{amount}} <!-- this binds ...
2
votes
4
answers
4k
views
AngularJS ng-model not working?
I have this index.html which has a navbar in the which is seen on all pages of my single page application. The navbars container div is using the ng-controller="LoginCtrl" value, so I will also ...
4
votes
1
answer
4k
views
Angular binding model in scope issue?
Hi I am new to the angular js and trying to write the chat application using the socket io and angular js with ionic for android platform. But in my chat page there is one issue.
I am trying to bind ...
1
vote
1
answer
4k
views
Trying to update one input's value to another's using angularjs
I'm fairly new using AngularJS but I've been using for a pet project and I've run in to an issue. What I basically want to do is take the text input from this input field:
<form id="ci_search_form"...
4
votes
2
answers
1k
views
Angular ng-model is being set to undefined on edit
I'm creating a modal dialog and trying to read the fields back when the dialog is closed, but when the input is edited, the ng-model for the input field is being set to undefined. With the Plunk, if ...
1
vote
2
answers
1k
views
AngularJS - inputs in a html-table inside a form
It works now...
I GET array and stick name in input, then I change name in input and PUT it.
HTML
<form id="edit">
<table>
<tr>
<th>Name: </th>
...
5
votes
4
answers
496
views
$scope returns undefined in ionic app
I am wondering at the dual behaviour of $scope. In the below script I am getting value of name as alert. But in my ionic app the same code alerts undefined.
I googled the problem and found this link ...
0
votes
2
answers
729
views
ng-change is not working even when ng-model is present in angularjs
Hi All I have checked for solutions online for my problem but nothing resolved my problem.
HTML5 code :
<!DOCTYPE html>
<html>
<head>
</head>
<body ng-app="...
0
votes
2
answers
123
views
Why is this <td ng-mouseenter="name='John'"> not working?
The example below is extremely simple (edited after sp00m correct for the previous example response):
index.html: (part)
<table>
<tr ng-repeat="r in [1,2,3]">
<td ng-repeat="c ...
0
votes
1
answer
393
views
Angularjs 1.4 - Two ways binding - Input text changed but scope does not?
I have a very weird problem with AngularJS 1.4 (TypeScript). The problem is in the controller I have a variable and this value can be viewed in an input text box. However, when I edit the value in ...
0
votes
1
answer
290
views
Ionic/AngularJS: local data is showing up blank when form is submited
I'm trying to save the data from a form, which is in a modal, to local storage. But, for some reason, the data is coming up blank.
For example, when I get the data, it returns this:
, , , , ,
...
0
votes
3
answers
280
views
ng-model undefined in controller
the ng-model I have in html has a dot in it. let's take a look
step1.html file
<div class="col-xs-12 col-sm-9">
<select id="plateId" ng-model="selectedPlate.plate" ng-options="plate.id ...