AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability, reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.

learn more… | top users | synonyms (1)

-1
votes
1answer
17 views

Uncaught ReferenceError: $scope is not defined - AngularJS

I'm new to using AngularJS. However, why isn't this working? Upon loading the webpage, I get in the console Uncaught ReferenceError: $scope is not defined on Line 81 which is $scope.processForm = ...
0
votes
0answers
19 views

New to AngularJS - basic customer management app

I'm still extremely new to AngularJS and am trying to make a fairly basic app to show a list of customers with one view, and a list of devices owned in another view. What (I think) I'm struggling ...
0
votes
1answer
16 views

Interceptor for all http requests in angularJS

I am currently working in a angular app in whcih I wanted to write an interceptor for all http request from my app which in turns calls a service to know whether the single sign on session is still ...
0
votes
1answer
16 views

Using Angular Factory not retrieving bit.ly URL

I'm trying to create a factory in Angular which takes an encoded URL and returns a shortened bit.ly link. The code works within a controller, but when I try and put that same code in a factory I can't ...
0
votes
2answers
16 views

nested table using ng-repeat

What I'm trying to do is repeat three levels. Demo: http://plnkr.co/edit/qXLcPHXDlOKZYI5jnCIp?p=preview <table> <thead> <tr> <td>Block</td> ...
1
vote
1answer
27 views

Compile JS Directive after HTML loaded

So I'm wanting to compile a directive after the HTML is loaded. var gifApp = angular.module('gifApp', []); gifApp.directive('addition', function() { return function(scope, element) { ...
0
votes
1answer
25 views

Compile JS after HTML loaded

So I'm wanting to compile some JS code after the HTML is loaded. var gifApp = angular.module('gifApp', []); function MainCtrl ($scope) { $scope.push = function() { ...
0
votes
0answers
12 views

Manually setting session ID in Express

I have an Angular/Express app and am trying to implement some kind of restful auth. The Express app has Passport standard username/pass login and Redis sessions. On successful login I return the ...
0
votes
1answer
17 views

angular: assigning ng-options dynamically, strange behavior

I am building an inline editable form. My directive hands down ng-options to the template. The jade file: div(input-inline-select="myobj.val" options="c.name for c in codes" tabindex="1") In the ...
1
vote
0answers
14 views

Angular: when and why do we need to escape with &amp;gt; and assign with &quot;&quot;?

when and why do we need to escape with &gt; and assign with ""? Why is image initiated with escaped quotes $scope.image = ""? function CarouselController($scope, $timeout) { ...
0
votes
0answers
13 views

angular UI Router - when to use abstract mode / nesting/named views?

Couldn't figure this from the docs: My use case: A big SPA, with multiple "widgets" or "apps" on a page - Each with a controller, data and template. preferably each of those should be a view. ...
1
vote
1answer
26 views

How does scalability compare between MVVM Javascript & tranditional ASP.NET MVC website

How does scalability match up in these two architectures? (For a web app) I.E I can see that for MVVM javascript, we have; Advantages: -A share of the logical processing required, is executed on ...
0
votes
3answers
29 views

Add DOM Elements (that are Angular directives) via jQuery .append()?

Is there any way to add an element that is an Angular directive with jQuery methods like append() and have Angular do its compilation/linking to make it work as though you'd included the directive in ...
0
votes
0answers
16 views

Unexpected ng-change Behavior

Looking at an exercise from AngularJS in Action, I'm trying to implement the ng-change behavior to update the select's drop-down value upon a change to the story.status. JS $scope.setCurrentStatus = ...
0
votes
0answers
5 views

Protractor running tests on PhantomJS

I can't seem to get PhantomJS through a test successfully. I tried to integrate it into my project, but after that failed I tried to just run the basic Angular Docs samples and I'm getting the same ...
0
votes
0answers
16 views

Model bindings not working on checkboxes in a nested loop of a directive

I am creating a grid of checkboxes to enable a user to select different events and age classes for an athletics meeting. The events are the columns, the classes are the rows. Here's the plunk: ...
0
votes
1answer
17 views

ng-grid how to enable Edit and Delete buttons

I am still new to Angular and learning about the ngGrid. I have a basic ng-grid with some data on schedules. I have Add, Edit and Delete buttons at the bottom of the grid. I want to disable the Edit ...
0
votes
0answers
14 views

Is it standard behavior to assign singleton variables (used only in unit testing) in a controller?

"myEvent" is fired when clicking on any div in a grid, watching this event using: $scope.$on('myEvent', function (e, info) { var someString = someStringHelper.convertToString(info); ...
0
votes
0answers
18 views

Angular.Dart How to dynamically add Component to DOM?

I have a custom @NgComponent in my project and it works if I place it within the static HTML of the application. What I'm trying to figure out is how to add one to the DOM dynamically? If I ...
0
votes
0answers
13 views

Getting word explanation from text in angular JS [on hold]

I have some problem of how to implement getting word explanation User journey: user see the text and clicks on unknown word. It get data for explanation from db and show him in popup. Now I have ...
0
votes
0answers
10 views

Angular Routing not working on Windows 8 Metro APP

I am trying to create Windows 8 Metro App using JavaScript (AngularJS). I am using Visual Studio 2013 for development on Windows 8.1 OS. I have two controllers and two templates and configured a ...
-1
votes
1answer
22 views

What associates this ng-view with a controller

I'm not seeing how my div ng-view in my index.html is associated with PhoneListCtrl. For example, how would I associate it with PhoneDetailCtrl? My index.html: <html lang="en" ...
-2
votes
1answer
18 views

How to nest data with ng-grid [on hold]

After running through ALL the examples, I guess my only choice is doing a custom template based somewhat on this example , although not every row will have children. Does anyone have any ...
0
votes
1answer
13 views

Angularjs ui modal windows with timepicker

I am trying to add a timepicker and a datepicker on a modal window and feels like the mytime model doesn't update. You can see it in the alert windows. Can someone give me a hint. When I do a output ...
0
votes
2answers
28 views

Caching data and databindings - AngularJs

Just trying to get my head around how to structure this one. I have some components that all need the same data. So I've defined a service (.factory) that provides access to that data. However if I ...
0
votes
0answers
18 views

How to sort child directives on dynamic values

I've found that this is a useful pattern: Widgets written as angular directives: MyApp.directive('parentWidget', function () { return { controller: function ($scope) { ...
0
votes
2answers
26 views

Angular with SignalR

I am playing with Angular and SignalR, I have tried to creat service which will act as manager dashboard.factory('notificationsHub', function ($scope) { var connection; var proxy; var initialize = ...
0
votes
1answer
28 views

AngularJS Directive Template for Select and Ng-Options

I am having trouble trying to turn the following html snippets into equivalent templates in a pair of directives. <select ng-model="address.country" ng-change="address.division=null" ...
0
votes
1answer
16 views

Adding an AngularJS project to a Visual Studio 2012 solution

I would like to create a Visual Studio 2012 (Premium) solution, initially containing a project for an AngularJS client. Later on, at least one ASP.NET MVC 4 project will be added defining the server ...
0
votes
1answer
17 views

Select buttons bound to same scope, triggering each other on click. How to unbind scope from two select list buttons in angular.js?

JS Fiddle Clicking on one button triggers the other. In my app, clicking on categories changes the url to /:catId, to populate the animals list where animal.catId = catId. I have tried putting the ...
2
votes
1answer
28 views

AngularJS/UI/Bootstrap remove affix from an element?

I am using AngularJS 1.2 and Bootstrap 2.3, although I think it is irrelevant that Angular is involved since this is just jQuery. I want to be able to turn the affix on and off for a particular ...
0
votes
1answer
10 views

Unable to run Protractor - ECONNREFUSED connect ECONNREFUSED

I'm trying to learn AngularJS. As part of this, I want to learn to use end-to-end testing. Currently, I have a directory structure like this: node_modules .bin ... protractor ... ...
0
votes
1answer
29 views

AngularJs, troublesome filter function

I'm trying to learn AngularJS but got stuck on my filter function. I have a JSON file containing persons and a service & controller that loads it. [{ "id": "000000-0000", "name": "John Doe" }, ...
0
votes
0answers
19 views

TypeError: Attempted to assign to readonly property

I'm facing this error when writing a test for a directive (using generator-angular-module): src/capitalize.js: 'use strict'; angular.module('jviotti.string', []).filter('capitalize', function() { ...
0
votes
1answer
23 views

Send dynamic data in $http.post from $scope in angularjs

My template can be found here http://goo.gl/xEttgl. I am hardcoding postData by declaring it as a global variable as var postData = {'result': '27'}; app.factory('mypostService', function($http) { ...
0
votes
1answer
25 views

implementing a double select box

I'm trying to design a form element that has two select boxes from which you can move items left and right as shown here, http://plnkr.co/edit/2HjvYVEqkslGNSsErXr2?p=preview. HTML: <head> ...
0
votes
1answer
22 views

AngularJS ng-include partial not available in $http interceptor

I'm trying to have an ajax loading gif show when ajax content is loading in my AngularJS app. I've got everything working with the code below. My problem is that I have to copy and paste the ...
1
vote
1answer
34 views

AngularJS check if form is valid in controller

I need to check if a form is valid in a controller. View: <form novalidate="" name="createBusinessForm" ng-submit="setBusinessInformation()" class="css-form"> <!-- fields --> ...
0
votes
0answers
21 views

Getting “Error: 10 $digest() iterations reached. Aborting!” error

So I'm getting this error: Error: 10 $digest() iterations reached. Aborting! I understand that this function is returning a random element every time. How do I alleviate this problem of angular ...
0
votes
1answer
12 views

How to call a service function in AngularJS ng-click (or ng-change, …)?

When calling a function like this: HTML: <select ng-model="var" ng-change="myFunction(var)"> <option ng-repeat="option in alloptions">{{option}}</option> </select> JS: ...
0
votes
1answer
19 views

How to have a Service keep track of multiple clauses from other Services [on hold]

I want to have a service that returns true only when 3 or more async events from other services have completed successfully and any time one of them fails, have it be false. Basically and "isReady" ...
0
votes
1answer
12 views

Jasmine + AngularJS unit test a rest call

I am trying to write some tests for my rest calls and I am trying to figure out how to make a unique rest call per it declaration. For example: describe('My testing',function() { var $scope; ...
0
votes
1answer
17 views

Angular redirect for blocked route

I want to block certain routes when a user has not accepted an agreement, etc. Using $locationChangeStart works pretty well: $scope.$on('$locationChangeStart', function(event, newVal, oldVal) { ...
0
votes
1answer
14 views

ng-animate : Animation when model changes

I have created a table in which user can increase and decrease the value. See the Fiddle //sample code as its not allowing me to push the link to JSFiddle with out pasting code <tr ...
0
votes
0answers
14 views

Define the onEnter and onExit callbacks in another file with Angular UI Router

I have a simple application using Angular UI Router with some states. Actually I have this kind of code in my router : $stateProvider.state('map.layers', { url: '/layers', templateUrl: ...
0
votes
0answers
34 views

Breadcrumb in javascript

I'm trying to create a breadcrumb without using the url (the route provider) and without using jQuery. I have a tree like that Humans Trees Animals Cats Lions Dogs Terrier ...
0
votes
1answer
11 views

Calling a function in AngularJS service from the same service but within $watchcollection

this is a follow up question to this topic: Calling a function in AngularJS service from the same service? I realized too late I should open a new question instead asking it there (sorry for that) I ...
1
vote
1answer
13 views

How to pass custom directive name dynamically in class attribute of div tag?

I am very new to AngularJS. I have made a custom directive ng-user and I want to call it dynamically in class attribute by using a variable. e.g. $scope.dirName = "ng-user"; When i use this variable ...
0
votes
0answers
10 views

Multiple version of Angularjs with JSONP

I developed an application using angularjs, ui-bootstrap and JSONP (so that people can use my app on their website on cross domain). The problem is that there can be a conflict btw my version of ...
0
votes
0answers
16 views

Angular google Maps

Hi i am currently working on angular Google maps https://github.com/dylanfprice/angular-gm i am facing difficulties in setting the bounds and map center <gm-map gm-map-id="'infoWindows'" ...

15 30 50 per page