All Questions
Tagged with angularjs-model angularjs-scope
24 questions
0
votes
1
answer
836
views
How to refresh data in angularjs kendo-multi-select
I am new to angularjs. i am using kendo multiselect i am adding data by default when loading the view. and i have one save button when click that button i am calling Success method inside that method. ...
0
votes
3
answers
858
views
angularjs not updating model value
In my example I want to update model when user focus the textfield. In short append 'px' string to the existing value.
HTML:
<div ng-app>
<div ng-controller="PixelCtrl">
<div>
...
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 = '...
1
vote
0
answers
459
views
What is the difference between scope and model within a directive definition in AngularJS
I was wondering about the difference between scope and model within a directive.
The following 2 directives behave exactly the same:
angular.module( 'exampleApp', [] )
.directive( 'exampleDirective1'...
1
vote
1
answer
3k
views
passing value from parent directive to child directive's template function
I'm trying to access value that is passed from the parent's directive on the child directive's template function.
Please refer to the below plunker.
Plunker Link
CODE:
Parent Directive:
directive(...
1
vote
1
answer
55
views
AngularJS mantain state when changing views?
Is there a way to maintain $scope when changing views and coming back?
When i load a certain view there is some heavy loading (loading data), but if i switch views and comeback to this one al the ...
0
votes
0
answers
123
views
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: ...
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 ...
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
1
answer
70
views
Angularjs update model partially in input value
i've a strange behaviour with a model.
$scope.ev = temp;
<input type="text" class="form-control" id="inputDataFineEv" ng-model="ev.dataOraFineEvento" placeholder="Data fine" value="{{ev....
0
votes
3
answers
39
views
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 ...
0
votes
1
answer
2k
views
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 ...
1
vote
2
answers
491
views
Angularjs model not updated when switching between users at login
I need the following functionality: When a user goes to the login form, the browser should auto fill the username and password.
My implementation works (on FF and Chrome) but, there is this bug (not ...
1
vote
2
answers
3k
views
Changing value of an input date picker with button angular
I have have an input field which is attached an Angular UI datepicker.
Below that, I added 2 buttons to change date, "day by day".
Here is the input part (just after in my page):
<p class="input-...
0
votes
2
answers
684
views
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 ...