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)

0
votes
2answers
11 views

Why does this Angular controller throw “Error: Unknown provider: nProvider <- n”?

jsFiddle of the code: <div ng-app=""> <div ng-controller="FirstCtrl"> <input type="text" ng-model="data.message" /> {{data.message + " world"}} </div> ...
-1
votes
1answer
16 views

Why the inputs can not be edited

This is a strange problem. The code is simple: HTML code: <body ng-controller="MainCtrl"> <ul ng-repeat="name in names"> <input type="text" ng-model="name" /> </ul> ...
1
vote
0answers
11 views

angularjs directive test spy does not work as expected

Code below executes but complains about element.popover not being invoked. I can't seem to figure out what the issue is. Thanks for help in advance. directive: angular.module('directives', []). ...
1
vote
2answers
13 views

Isolated scope with simple angularjs nested directive

Please check this plnkr I have read everyhting can find about directives, scope and isolated scopes. But I still cannot understand the way to make this work. The directive I created works perfectly ...
0
votes
1answer
17 views

Angularjs displaying json in Rails

I am trying to display a list of my donors - the html is: <div class="panel"> <header> <h1> Donor Information </h1> </header> <div class="content"> <div ...
0
votes
1answer
22 views

Dealing with transformed data in AngularJS

I have a list of timestamps. I can list them with AngularJS. However I want to list it as date strings. Those date strings should be editable - and when it's finished I would like to have the related ...
1
vote
0answers
44 views

Back button with nested states in Angular Router

I have an AngularJS application that makes use of the new, state-based ui-router. I have three different views in my application, where one is a top-level views, and the other two are nested ones. ...
3
votes
1answer
19 views

How do I stop $watching in AngularJS?

I can set up a $watch on an AngularJS scope to be notified when the expression I am interested in has changed. But how do I stop watching once I lose interest?
0
votes
1answer
27 views

Open modal in another controller with ng-include

I've this issue when I'm trying to open a modal in AngularJS with phonegap. I'm checking the connection from device, if device is offline, I need to open a modal. I have this code on my index.html ...
0
votes
1answer
22 views

Angular $http.get to same host but different port fails with no meaningful error

I'm running an Angular script that performs an $http.get(...) on a REST resource located at http://localhost:7700, but it's executing from a page served at http://localhost:4400. I'm not certain if ...
0
votes
2answers
22 views

In AngularJS how to get the new index of an array element after sorting?

This snippet shows my problem nicely: JSfiddle - sorting table Important parts: <tr ng-repeat="result in results | orderBy:predicate" ng-class="classRow($index)"> $scope.classRow = ...
1
vote
0answers
21 views

angular : ng-bind from view to position outside view

if this is solvable with $rootScope, how can i achieve this? my code is below, inside the view it works fine, as soon as i place the element outside of the view it breaks. controller ...
1
vote
1answer
18 views

Whats the angular way of autodirecting incomplete url's?

when i want to get to http://www.koran-auf-deutsch.de/koran-deutsch/23-die-glaubigen-al-mominun/ and just enter http://www.koran-auf-deutsch.de/koran-deutsch/23 i get directly to the url. i ...
0
votes
1answer
17 views

AngularJS - ngRepeat and ngModel

I have spent the better part of a few hours writing and re-writing this, and am probably just going to write my own directive here if there isn't an answer. I have a columnized display of inputs, 10 ...
0
votes
0answers
28 views

Detecting Angular js dom changes due to scope variable changes

Suppose I have this template <span>{{scopeVariable}}</span> And suppose somewhere in the angular scope I modify the variable scopeVariable, which will make it display on the ...

1 2 3 4 5 258
15 30 50 per page