In AngularJS, a scope is an object that refers to the application model. It is an execution context for expressions.

learn more… | top users | synonyms

0
votes
1answer
16 views

Angular js , simple app not working

So , my website is working on paging , and its done by doing .load to div , i am not using angular JS to load child pages , I just want to use angular in my child pages. This is my child page ...
0
votes
1answer
41 views

Make an Object global in AngularJS

In plain javascript, I can group similar functions into an object like so: var Monolog = { notify: function(title, message) { // Do something with title and message }, confirm: ...
-2
votes
0answers
20 views

How to do CRUD operation using external json in angularjs? [on hold]

Am learning Angularjs. I know how to read external json file. But I need how to write/update value in external json file.. any one help me on this...
0
votes
0answers
18 views

How to create a constructor for controller in angularjs?

Am learning angularjs. I want to now is it possible to create constructor in angular? if it is yes, how to create constructor for controller? can any one help me on this thanks,
1
vote
1answer
18 views

Updating $scope in an Angular directive

I m using the following, after much frustration and Googling I cannot get the data_banks item to update in the $scope after the $resource for Marketplace.buy has been loaded successfully; ...
0
votes
2answers
43 views

Angular binding with form automatically

jsfiddle demo: https://jsfiddle.net/zpufky7u/1/ I have many forms on the site, which was working fine, but just suddenly angular is binding all the forms with class="ng-pristine ng-valid" Is this a ...
0
votes
1answer
11 views

How to implement message before redirect in angularjs using ngdialog?

How to create unsave change in angularjs using ngdialog. Eg: currently we are in page1 some fields we are edited. directly we going to page2 or somewhere that time ngdialog need to popup and ask if ...
0
votes
2answers
37 views

Not able to run AngularJS timer example

When i try to run the below example mentioned in the Angular JS timer site, I am getting error: ng:areq Bad Argument Argument 'MyAppController' is not a function, got undefined ...
0
votes
0answers
22 views

Getting access error when get the content from Angular Rest call (Http Get) to

I'm trying to get the content from Stash api using angular rest call showing below, But, Im get I'm getting below access error : XMLHttpRequest cannot load ...
0
votes
2answers
26 views

Using ng-change in AngularJS with “Controller As” syntax

I am trying to avoid using $scope in my controller function, instead opting to use var viewModel = this; with "controller as" viewModel syntax. My problem is that I need to use ng-change to call a ...
1
vote
0answers
15 views

How to move up and down items using angular js AND strongloop

I am using angularjs and StrongLoop generated lb-services api to update my persisted store. I have implemented move up and move down of items in Angular by applying to the $scope array, the simple ...
0
votes
0answers
23 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
1answer
25 views

Dropdown select options translation in angular-js for multilingual site

I have set of options to bind to a select box. Say the array is defined like whose content is to be bind to the dropdown. $scope.options = [ { City: "en", }, { City: "nl" }, ...
1
vote
4answers
30 views

AngularJs Controller not linking to view

I can't understand why the text I type in my controller is not linking to the view. I created two javascript files. app.js and MainController.js I followed a tutorial from Codecademy to replicate a ...
0
votes
1answer
29 views

Angular and dynamic HTML

What's the best approach for a page that has dynamic HTML and Angular? I mean, I'm using DataTables.net for showing search results and I need to be able to edit each cell using Angular. Of course that ...
2
votes
1answer
55 views

“RangeError: Maximum call stack size exceeded” in During Complex JSON processing

I'm working on the report page which have to process a big JSON Object. This JSON object may contain at least 500 to 600 inner JSON objects. I have to iterate them all and have to display them in my ...
0
votes
4answers
48 views

Angularjs best practise - $scope vs this

I'm trying to follow best practise but have a problem understanding when to use $scope and when to use 'this'. I have a simple example using angularjs 1.4.8. <!DOCTYPE html> <html ...
1
vote
1answer
33 views

On event executed multiple times after compilation

I have this directive: myApp.directive('someDir', function($compile){ return{ restrict: 'A', replace: true, link: function(scope, element, attrs){ ...
0
votes
0answers
42 views

Custom angular directive within ng-if not being displayed

I have an issue with one of our custom directive (alert-animate) not being displayed. The issue occurs after the popinState changes to inprogress and back to update. Somehow the custom directive does ...
3
votes
1answer
39 views

How to load dynamic Tabs in ngDialog box in angularjs?

Dynamic Tab Sample File Link -- Not Working Static Tab Sample File Link -- Working In NgDialog Tabs Not Showing In above link I added the sample file for ngDialog model with tabs. In index ...
1
vote
1answer
22 views

$scope.watchCollection with if statements removes array data

So I am running into a bit of confusion with the watchCollection statement. I am running an watching a change in an my array objects and I am noticing whenever I use an if statement within the $watch ...
0
votes
1answer
6 views

How can I defer a nested state / templateUrl load?

I have a nested ui router state (a ui-view within a ui-view) - How would I go about defering the load of only the child state? The preferred scenario would have the child state simply waiting for an ...
0
votes
1answer
26 views

Get json data from url

I have following part of code which works fine. Now I want to get my "list" from specific url which response with json data. (function() { var app, list; list = [ { 'name': 'Foo', ...
0
votes
2answers
34 views

Calling multiple REST APIs using response of first API in AngularJS

I am new to AngularJS and trying to make an application which loads data by calling APIs. It is like I am fetching the list of boxes of type A (Resource Groups) and then each Box of type A has ...
0
votes
2answers
34 views

How to access variables in angularjs $http service

I have my controller and it fetches data from 2 json files using $http service. This data is stored inside $scope variables like $scope.name and $scope.application. But I am unable to parse over both ...
-3
votes
0answers
25 views

directive handle dynamic content using AngularJs

I need to insert this code into directive: <link rel="Stylesheet" type="text/css" href="CSSHandler.ashx?ModelIdentifier=bikester" /> <style type="text/css"> table { ...
1
vote
0answers
19 views

Angular / UI-Router - How can I defer the load of a nested view, but not its parent?

I have a setup where I am toggling various views on a base level for multivariate testing purposes. I am using nested ui-view's to accomplish this without issue, however in one layout I'd like to ...
4
votes
3answers
45 views

Dropdown binding with angular

Suppose I have this controller: myApp.controller('testCtrl', function ($scope) { $scope.cars = [ { carId: '1', carModel: 'BMW', carOwner: 'Nader' }, { carId: '2', carModel: ...
0
votes
1answer
23 views

Angular controller functions are both constructors and a decorators?

If one writes a controller as ctrl for the following code: function Controller($scope) { $scope.abc = "123"; } angularApp.controller("controller", Controller); Does the pseudo code below ...
2
votes
2answers
34 views

Angularjs not updating variables

I want to display/update the calculation answer directly without the need of aditional buttons. Or do i need a function and button to apply the changes? <div ng-app="myApp" ...
0
votes
0answers
17 views

Does the template function generate new child scopes?

I'm trying to replace the ng-repeat directive with a custom one written by me. Here is the definition object link function: //directive definition object... //... ///link: function ...
1
vote
0answers
19 views

Get image height Width of image after it has loaded images in angularjs template

I am calling the renderimage function on ng-Click so that i get the height width of the image and i can apply to its parent container div. beacuse the slick carousel is not properly rendering the ...
0
votes
1answer
32 views

AngularJs access scope variable in another function

I am new to AngularJS and have this following piece of code that I need to edit. scope.findData = []; scope.clientId; scope.identityDocuments_a = []; scope.getClientIdentityDocuments_a = ...
1
vote
2answers
28 views

How can I create a directive that will style data with transcluded HTML

I have what I believe is a very simple desire for a directive: to take an array or object as a directive attribute and then allows the user of the directive to decide how to format/style the data ...
0
votes
0answers
27 views

Send scope data to custom event anguarjs

I need an event that executes when the user press enter on the element and there is an answer to that question already. But the situation here is that the only thing that I can pass to the callback is ...
2
votes
1answer
37 views

Can we remove/delete controllers, services, factories, directives, etc? [on hold]

I am trying to clear the javascript memory of my app as far as possible. I am thinking if I can remove/delete controllers, services, factories, directives, etc and their scope variables after their ...
0
votes
1answer
26 views

how to get current and previous date in angular?

I am using date picker in angular ..which is working fine .But I need when user type "t" or "T" it show current or today date ..And if user type "t-1" ..it show yesterday date ...Same when user type ...
0
votes
0answers
23 views

AngularJS & Modules - Can access controller properties, but can't fire events

I'm using browserify to include my controllers etc. as modules: var app = angular.module('app', [...]) var LoginCtrl = require('./controllers/Login'); Where I define said controller as follows: ...
0
votes
1answer
26 views

$scope doesn't update when using ng-if

On Angular 1.3.x I made a select input that calls a function on ng-change. The surrounding has an ng-if statement. html <div class="form-group" ng-if="property"> <label ...
0
votes
0answers
11 views

Monitor progress in service to update controller scope / view (AWS S3 progress)

I'm making a call within a factory to AWS S3 to upload to a bucket. I know that I can monitor the progress of the upload with something like: .on('httpUploadProgress', function (progress) { ...
0
votes
1answer
12 views

Using text input as filter option

I struggle with the usage of the filter. I have an input field that i want to use as a filter option. The array looks like this: $scope.Examples=[ { name:'Dolly', place:'roof', ...
0
votes
2answers
30 views

Passing object from spring controller to ANGULARJS

I'm trying to create a CRUD system on a list and I need to pass the list from the controller of spring to ANGULARJS controller. Can someone point to the right direction pls? P.S: I already can ...
0
votes
1answer
44 views

how to create dynamic form in angularjs?

My error description: step 1: I am appending template using this directive. step 2: Now I remove this appended template using this scope function "removeMilestoneDiv". step 3: After submit my form. ...
1
vote
3answers
45 views

why filter not working in input field in angular?

I am tying to add filter in input field but it gives error ..I want if I type 1k in input field it show it text 1,000 in input field (value)..In other words if I type 1k ..it convert 1k or remove / ...
1
vote
2answers
34 views

How to do base class concept for CRUD in angularjs?

Currently Am doing student project in angularJS. In that I need to use base class concept for CRUD operation.. I need to create one base class in that class contain Create, read, update and delete ...
1
vote
2answers
50 views

Ng-click not firing in angularjs?

Here I created sample angular program for button click. but its not firing may i know where i did mistake? can any one help me on this.. thanks var myApp = angular.module('myApp', []); ...
0
votes
1answer
42 views

$scope value is not updating in model dialog

I am using angularjs and opening bootstrap model. I want to update my $scope variable and want to show it in model. But new value is not coming on model. My code is, View, <li ...
0
votes
1answer
21 views

$scope var not updating on Parse update

I am building an app using ionic and parse. I am updating a boolean in parse based on a click. Everything works on parse end, I see the user object updated in the console after the function runs, ...
1
vote
2answers
30 views

Getters and Setters on angular.extend $scope

I'm reading an interesting article AngularJS: Tricks with angular.extend(), and there is explained how to use getters and setters with extend. But there are some points that I don't understand. Js: ...
0
votes
1answer
35 views

Passing a form to a directive: undefined

I've got this code (updated) HTML <body ng-controller="MainCtrl"> <form name="form" novalidate> <directive form="form.test" required ><input type="text" ...