All Questions
Tagged with angularjs-model javascript
36 questions
0
votes
1
answer
45
views
How to change the number of rows using a st-template
I've created a st-template that contains specific pagination functionality.
Here is mine the div that calls the st-template:
<div st-pagination="" st-items-by-page="itemsPerPage" st-displayed-...
0
votes
1
answer
80
views
AngularJS , adding 2 extra input text boxes with id and ng-model and they are not getting submitted
I have been modifying a form which I have done many times. This time someone I cannot figure out WHY it is not sending 2 extra fields
Controller
vm.question = {};
Now most of the time they will ...
0
votes
4
answers
1k
views
Updating only the 'view' value using angular directive
So I have a decimal value in controller like this:
// Controller
var MyController = function($scope) {
...
$scope.percentValue = 0.05; // can be stored
...
};
<!-- View -->
<...
0
votes
1
answer
2k
views
AngularJS input mask with validation
I have a directive which has a mask and validation for an input control. It's basically a time input where the user can input something like 45 (45 mins) or 2.5 (2.5 hours => 150 minutes). The input ...
0
votes
3
answers
523
views
How to access the modalInstance $scope from outside the model
I want to update some value of a $modal in AngularJS but unable to understand how I can do this. Sample code is below:
var modalInstance;
function setupCall(data) {
var templateURL = '...
0
votes
1
answer
54
views
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 ...
0
votes
1
answer
86
views
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 ...
0
votes
1
answer
1k
views
Angular.js values not being saved in the scope from textbox
I have this html markup:
<div data-ng-controller="VehicleProfileController">
<modal title="Add Vehicle Info" visible="showVehicleInfo">
<div class="container">
<div ...
1
vote
0
answers
241
views
Angularjs MV* (MVW) Design Pattern Involving ES6 - AngularJS
I have read these answers by Izhaki and Artem Platonov on Understanding Design Patterns and have some questions about this approach. They might be trivial, but I need some answers.
The final answer ...
0
votes
1
answer
206
views
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 ...
0
votes
1
answer
2k
views
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 ...
0
votes
3
answers
410
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
1
answer
1k
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
1
answer
52
views
Use filter with angularjs controller
I use this code to add a property in the filter when a checkbox is cheked.
<input ng-model="filter['model']['first']" value="first" type="checkbox" name="model">
I tried to do this in the ...
0
votes
1
answer
36
views
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 ...