All Questions
Tagged with angularjs-scope angular-ngmodel
67 questions
0
votes
1
answer
1k
views
How to make ng-model work with ng-value?
I have this input:
<input type="number" id="totWeight" ng-model="totWeight" ng-value="getTotWeight()" />
which value is calculated based on other fields, but it can also be inserted manually ...
-1
votes
2
answers
403
views
ng-model-binding not updating when changed
[ng-repeat is used to form this table]
Want to do following tasks :
Step1- input in PromoPriceTxt3 text box should reflect in other text
boxes below it too. i.e PromoPriceTxt4
Step2- The change in ...
0
votes
2
answers
2k
views
Add/Remove class if checkbox is checked/unchecked (AngularJS)
I need to toggle a class if a checkbox is checked/unchecked with AngularJS. My Code is working on Plunker but in my controller there is no functionality.
Here is the Plunker: Click!
My Controller ...
1
vote
0
answers
442
views
AngularJS 1.5 component get parent ngModel
I can't change ngModel defined in $ctrl. It looks like this:
1. I have next code, defining component in index.html:
<div ng-controller="appControllerData">
...
<div ng-controller="...
0
votes
1
answer
697
views
AngularJS Form and $scope not updating each other
I am trying to make a very minimalistic form in AngularJS (version 1).
I am trying to use ng-model and the $scope to update an object I've named fluff. Once a user clicks submit it should be used in ...
0
votes
0
answers
32
views
Weird behavior with this and $scope in controller method
Well, I am new to angular and my prior searches showed me that using 'this' is different from '$scope', inside a controller. Bearing that in mind, I decided to only use scope in my application, which ...
0
votes
2
answers
1k
views
auto generate download link with angularjs
i generate my download link from this script
https://github.com/joshpangell/single-use
for example:
download url generated like this:
http://cloud.joshpangell.com/singleuse/download.php?key=...
0
votes
1
answer
94
views
ng-model not updating input properly
I have this same function on another page and it works beautifully, but for the life of me can't figure out why its not working in a 2nd implemenation:
If the userPhone input starts out blank, and I ...
0
votes
0
answers
50
views
ng-model not scope data with ctrl
I need to send form with post method to url. All ng-select field work, but only one input field not. Here is code. I add ctrl to ui-state like all other ctrl.
> https://plnkr.co/edit/...
0
votes
2
answers
92
views
return value the ng-model of a select within the repeat
I problem return value ng-model="selectStates" of a select within the repeat!
Where this commented, was another attempt.
<div ng-controller="coursesCtrl">
<form name="formFilters" id="...
2
votes
5
answers
969
views
Initializing all ng-model from controller on load Angularjs
I am stuck into a problem where I am suppose to get all the ng-models which are declared as ng-model="a['keyX'] and initialize them to 0 before the user starts giving inputs..
Due to some reasons I ...
0
votes
2
answers
910
views
Apply $scope ng-click event to hidden element after it is displayed
Please ask me for better explanation. I have built a global search function into the header of my site. I want to display a separate input box for mobile search that uses the same ng-click event but ...
0
votes
1
answer
840
views
AngularJS How to dynamically get the ng-model value of inputs in a form or whatever
I have a form containing inputs with a ng-model defined for each of them :
<form>
<input type="date" ng-model="dateFilterInput" id="dateFilter" class="...">
<select class="..." id="...
0
votes
1
answer
95
views
Download button not responding to ng-disabled in angularjs
I have a webpage which displays contents of a folder/directory upon clicking on it. If the contents of a folder has files, then download button is activated. If the contents of the folder is a ...
0
votes
4
answers
2k
views
Empty the placeholder when using ng-model
I'd like to create a text input linking it to a variable in the Scope. But I don't want the placeholder display anything. However the content of this variable in scope continues to shows. Why?
...