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

learn more… | top users | synonyms (2)

0
votes
0answers
10 views

What should be order of loading <Script>

I am new guy for developing website. Below is my script's loading sequence. I am loading My project's required JQuery script first, then loading AngularJS scripts and finally my custom scripts. ...
0
votes
0answers
4 views

How to display an element with ng-show based on AngularJS Bootstrap UI Accordion state?

I've got a few dynamic accordions which based on $resource like so: $scope.categories = $resource.query() // Written as such for simplicity sake Then in my template I've got the following: ...
0
votes
0answers
6 views

WordPress - how to route all requests back to index

I am experimenting with using WordPress and Angular JS together through the WP-API plugin. I'd like to have WordPress just serve content through a JSON API and let Angular take care of everything ...
0
votes
0answers
10 views

AngularJs dynamic modal

I'm trying to make dynamic modal in AngularJs using UI Bootstrap, but all my attempts are unsuccessful. Controller code: $scope.getFacetKey = function(value){ $scope.modalFacetKey = value; ...
-2
votes
0answers
8 views

What are the differnces between Angular JS and GWT?

What are the considerations to choose AngularJS over GWT? Why should one prefer one over another?
0
votes
0answers
13 views

AngularJS Factory adds $promise and $resolve to object but not sure how to resolve it correctly?

I have a Factory in AngularJS, which serves as the bridge between my app and my back-end. When I try to add a DELETE function to my factory, it creates a weird URL which includes $promise and ...
0
votes
1answer
10 views

Shuffle Animation for Angular on OrderBy

Does anyone know of a sound solution for a shuffle animation when angular reorders items in ng-repeat. I've tried masonry (retain masonry effect with Angular JS sorting and filtering), ng-move, and ...
0
votes
0answers
8 views

Sign in Using Google credentials using Spring framework

I am writing a Web application where REST API's are exposed using Spring framework and the UI is written using AngularJS. I want to provide authentication for the application wherein the user can ...
0
votes
1answer
12 views

Open native google maps from cordova app

The front end of the app is angularjs and I would like to open a native google maps application when the user clicks the following link. <a class="google-map" ...
0
votes
0answers
13 views

Regular expression do not work correctly when used in jade but works fine when used inside controller

I am using regular expression in Jade as, ng-pattern='/^([0-9]{1,2}){1}(\.[0-9]{1,2})?$/' [Not working as required]. As a work around, I created a $scope variable in controller and put this expression ...
1
vote
1answer
19 views

Compile directive that is injected from a JSON file AngularJS

Hoping someone can help me with this challenge. I request JSON data from the server using $http.get(); The data from the server returns an object. One value in the object contains HTML markup. This ...
1
vote
0answers
28 views

Get AngularJS template bindings

I am working on something like CMS based on AngularJS templates. I need to get bindings from a template so my users are able to fullfill those properties for specific pages. So how can I get all ...
0
votes
0answers
34 views

Best Practices/Method Of Doing [on hold]

I wanted to ask people with experience about how they go about figuring out what language/framework they use for web applications. Now you are probably wondering what do I mean? Well, what I am ...
1
vote
1answer
33 views

AngularJs Uncaught Error when deployed

I am seeing this error in AngularJS Wierdly, it only occurs when I deploy it in Azure Cloud. In my local instance - it doesn't occur. Any ideas? Update: this is the actual website login using ...
0
votes
0answers
8 views

Include angular starp in a mean io project

I've set up a mean io project and am trying to include angular-strap. I've installed strap with bower and tried both app.angularDependencies(['angular-strap']) and ...
3
votes
0answers
19 views

Should we use CSS in Karma Unit level tests in AngularJS projects

Say your Javascript performs some element/position calculations e.g. in angularjs directive. In order to test this Javascript code is it appropriate to include CSS in karma.conf.js ? I see that ...
0
votes
0answers
36 views

$scope.array showing up in console.log but not in the view after ng-repeat

Edit: it's worth noting that tasks added to the third input seem to add to all users. Haven't been able to trace why. I made a plunkr to help explain the problem: ...
-1
votes
0answers
13 views

POS Restaurant food menu order via Table vice - cordova Angularjs ionic

I am going to develop mobile apps for POS Restaurant Table vice food Menu order app. Let me know full system architecture hardware wise and software using Cordova,ionic, Angularjs. How send order to ...
-1
votes
1answer
14 views

Restangular: Make request fail when 200 OK response contains specific payload

I have URL I'm using that gives a 200 OK status and a JSON payload of {error: "Invalid user"} when you do not provide a correct user on a GET request. When using this URL with Restangular, I would ...
0
votes
1answer
20 views

.htaccess multiple folders and root

can someone help me with an htaccess rules for this application format. here is my file structure: /api - /1.0 (this is a php project, a backend rest api of sorts to the frontend) - ...
0
votes
2answers
20 views

Passing in a key results in extra characters in my firebase URL, how do I remove them?

When placing the "key" variable inside of this string, it displays 'simplelogin%3A5' instead of 'simplelogin:5'. Is there a way to just pass in the latter? var populateTasks = function(date, key){ ...
-4
votes
1answer
38 views

How do I enable Javascript on AngularJS template?

We have CMS where we create angular template. Some time with that template we need to mix javascript for various reason. Following is an example <div> <h1>one</h1> {{new ...
0
votes
1answer
21 views

Group json data from server by date

Am retrieving data from my server in the format below [{id: 1, title:"hello world", date:"2014-10-11",location: "The Room"},{id: 1, title:"hello world2", date:"2014-10-11",location: "The Room"}, {id: ...
2
votes
0answers
27 views

CSS3 Animation with AngularJS not sliding correctly in Firefox

I made a CSS3 animation connected to an ng-repeat which then shows an inline-list with Bootstrap3, I limited the number of maximum 3 of the list showing and I have some little issues with appears ...
0
votes
1answer
17 views

GitHub API - Finding what languages does the repository is using

I am Using GitHub API to list all the public repository of the user. But now i want to see what language they use in the repository and call it through API. I did lot of research and looked into API ...
0
votes
1answer
41 views

AngularJS 1.2.25 inject javascript values

To start, I'm an AngularJS newb, having said that I want to be able to change an Angular $scope from an outside JavaScript function. Here's a plunker to illustrate what I was hoping to do: ...
2
votes
1answer
44 views

Keep track of depth in the object

I have the following piece of code as an example: var someObject = { id:'a', l1:{ id:'b', l2:null } }; var pointer = someObject; // seq = abc function doSomething(seq) { ...
0
votes
0answers
12 views

How $http.get should work, I always get from PHP nothing right as answer

As I wrote in the title, I can't obtain any right answer from PHP. Anyone has any idea? Javascript var app = angular.module("appMovies", []); app.controller("listMovies", ["$scope", "$http", ...
1
vote
1answer
23 views

Can I run new Date() as an argument to a $scope.function while using ng-init?

I have a function called populateTasks that requires two arguments: a new Date() and the key to an angularfire object. Is it possible to run from the view? ng-init="populateTasks(new Date(), key) ...
3
votes
1answer
47 views

Can I create a javascript function in EcmaScript 5 with the new get and set in one declaration?

I am very interested in ES5 getters and setters for use as Angular.js controllers. Currently I am doing: var helloEC5 = function(){ //constructor this.pants = "jeans"; }; helloEC5.prototype = { ...
0
votes
1answer
10 views

Onsenui infinit scroll + AngularJS ngShow

Im trying to show a loading block when the infinite scroll is loading more list items, and its ok for the first time, but the followings does'nt work. When "$scope.isLoading = true;" the block is not ...
0
votes
1answer
25 views

Using Default Properties in AngularJS

I'm working on an AngularJS app. In this app, I'm working on a custom directive. This directive will render differently based on a custom attribute value. Currently, My directive looks like this: ...
0
votes
1answer
17 views

How to assign angularjs variable value to html element attribute, such as input elememnt's name attribute

I am totally new to angular, I have an angularjs $scope variable: $scope.testme = "inputname", and I want to assign this variable value to a name attribute of html element. I want the below ...
1
vote
1answer
18 views

How can I use the result of a .then() function in another function in angularfire?

I need to access the user.uid for the logged in user from a function so that I can pass it into a Firebase ref. Updated code based on comments: var populateTasks = function(date){ var promise = ...
0
votes
1answer
24 views

AngularJS directive: is it possible to interpolate within an attribute?

I've got a directive I call as follows: <photos ng-if="sp.photoZoom" class="alignRight" photoid="{{hs.id}}-{{hs.name}}" list="[{file: ...
0
votes
0answers
14 views

Bootstrap UI Angular Accordion and Rails template must have one root element

I'm trying to use the example accordion directive in my rails app but receive the following error and my browser crashes Template for directive 'accordionGroup' must have exactly one root element. ...
1
vote
0answers
23 views

From MVC Razor / jQuery to AngularJS - Possible pitfalls?

What kind of potential pitfalls might AngularJS have when coming from a MVC Razor view engine with jQuery background? Some issues that I haven't bumped into yet, while just beginning to read the ...
0
votes
1answer
23 views

How to avoid including all .js and .css files while using ng-view?

How can we avoid including all .js and .css files in the index.html like in this example : <!DOCTYPE html> <html ng-app="MyApp"> <head> <base href="/"> <meta ...
1
vote
1answer
24 views

In Angular, how do I reach in to possibly deep child scopes to change things like validity?

I have a simple form that looks like this: <form name="myForm"> <input name="field" ng-model="item.field"></input> <button ng-click="save()">Save</button> ...
0
votes
0answers
18 views

AngularJS application to request api (HoN) getting error; “Unexpected Token :” or no COR allowed

I am trying to create an AngularJS application and use the Hereos of Newerth API for some data. The API returns a JSON. However when I try to request the data using Angulars $http service and ...
1
vote
1answer
23 views

How to handle error in angular-ui-router's resolve

I am using angular-ui-router's resolve to get data from server before moving to a state. Sometimes the request to the server fails and I need to inform the user about the failure. If I call the server ...
0
votes
1answer
22 views

How do I get two way binding to work in Angular with new controllerAs syntax and Object Oriented Controllers?

I am fearful of "scope soup", people hanging too much functionality off the $scope. So I am experimenting with OO oriented controllers, the new controllerAs and using EC5 style getter / setters in my ...
0
votes
2answers
24 views

Angular '<controller> as <variable>' is not a function, got undefined at Error (native)

I've been trying to make a very simple angular app to create a more visually appealing portoflio, but I can't seem to get through this error. I've tried many things without success and was hoping you ...
0
votes
0answers
12 views

Angularjs communication controllers in different views - Rails

I need a tip how to connect two controllers in different views in Rails. I have items and an Cart in my index, when I click on item in new tab and add item to cart I want to this item be added to cart ...
0
votes
2answers
15 views

angularjs: directive and ng-repeat add extra div

I've got the directive as follows: app.directive("photos", function () { return { restrict: "E", replace: true, scope: { "photoid": "@", ...
1
vote
1answer
11 views

Controller is not a function, got undefined

I'm trying to create a directive on a controller. The directive will create a table of items returned from djangorestframework. controller.js: var expensesApp = angular.module('expensesApp', []); ...
0
votes
1answer
8 views

ng-class and value load using $http

I've got partial view with one element which class should depend on value of variable in $scope: <a class="btn" ng-class="{'btn-success': led == 'on'}" ng-click="toggleLed()">On</a> ...
0
votes
0answers
20 views

Angular extend instead of for in loop

I am currently using this in an angularjs decorator for (var key in $delegate) { proxy[key] = $delegate[key]; }; Can I replace it with this, or could there be unforeseen side effects? Are they ...
0
votes
1answer
10 views

How to pass arguments to an isolated scope when using & in custom directive?

I have a function in my controller scope $scope.read = function(a, b, c){}; I've binded it to my custom directive <dir read="read(a, b, c)"></dir> And my custom directive ...
0
votes
2answers
28 views

Angular.js resource rest call error TypeError: undefined is not a function

I want to do a REST call to update data, i have done a GET request to fill up the form, and when i click on update button, i want to send and PUT call instead i get the Type error. Here is the code: ...