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
0answers
13 views

newValue always equals to oldValue in AngularJS property watching in unit test

I have an controller which is simply watching a 'name' property and prints its new and old values on any change. function Ctrl($scope) { $scope.$watch('name', function(newValue, oldValue) { ...
0
votes
0answers
4 views

find out angular app name from Directive

I have a directive which can be used in several applications, and I would like to be able to log the apps using the directive. How can I find out the app name that is including the directive, if I can ...
1
vote
0answers
18 views

AngularJS - Function called twice

My problem is that every function in my JS, is called twice. I have been reading many threads with the same problem, but I am not able to find an appropiate answer. Here is my code: HTML ...
1
vote
1answer
14 views

AngularJS - bind-html to input

I have a json file with same values that have special chars. Also i have a var that I use as a model to input,textarea <input ng-model="textVar" type="text" /> <textarea ...
2
votes
1answer
11 views

AngularJS: Pass an object into a state using ui-router

I'd like to be able to transition to a state and a pass an arbitrary object using ui-router. I'm aware that usually $stateParams is used, but I believe this value is inserted into the URL, and I ...
1
vote
0answers
9 views

AngularJS different ng-app on differnet pages

I am new to Angular JS. I am trying to learn. I have created a project which uses grunt and bower. This is my project struture MyApp | |__app | |__bower_components | |__scripts | | ...
0
votes
1answer
12 views

Angularjs - using orderby filter in the controller's scope

I have an array of objects i.e. filtered and paged and now I would like to order the list items by different object attributes. I tried the orderBy filter as follows: <th><a href='' ...
0
votes
1answer
13 views

angularjs ng-include manage dom from the controller

Is there a way to manage the dom using ng-include (for instance show the p with color:red) I've tried with <body> <div ng-controller="MyCtrl"> <div ...
1
vote
2answers
28 views

Angularjs: accessing scope variable array and calculating average

sorry if the question is a little abstract from the title. I will try to explain it here and supply a Gist with relevant code. I have a JSON api which I grab through AngularJS. This is basically a ...
2
votes
1answer
10 views

How to animate child elements when ngClass changes on parent

Is it possible to define transitions on child elements and have ngAnimate taken them into account when ngClass changes for parent elements? So far I haven't been able to do this. ...
0
votes
1answer
11 views

How to load data at launching Chrome App?

What's the best practice of loading data at launching Chrome App? The landing page of my Chrome App is dependent on some configuration data, which I've stored in the chrome local storage. However, ...
1
vote
0answers
9 views

ajax call to server with self signed certificates.

I need to make an ajax call to a server which uses a self-signed certificate. Using the --insecure option does in curl helps in doing so. But i need to make ajax calls, much like the $http requests ...
0
votes
0answers
16 views

Unable to set $scope variable in Angularjs using Sockets

Here is my code function MyCtrl() { $scope.activities = {}; if("WebSocket" in window) { var ws = new WebSocket("ws:...."); ws.onopen = function(){ ws.send(2); ...
-2
votes
0answers
25 views

On-off switch on angular.js

How to make On-off switch same like this one: jQuery Mobile Switch Can any tell good suggestion or any reference. I tried with ng-switch but not get the output proper way. Angular code in plunker ...
4
votes
0answers
19 views

Scrolling iframe on mobile app jump to top of the page at some point

I have this html: <header class="bar-title"> <a class="button-prev" onclick="history.back(-1)">back</a> <h1 class="title">Page</h1> </header> <div ...

15 30 50 per page