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
1answer
23 views

Validation messages into Directive - AngularJS

I'm trying do a small reusable component in AngularJS using directives. I have made good progress but I have a problem with the validations. For example the required validation not working. I think is ...
0
votes
0answers
17 views

How do you prefix a URL route with a dynamic $scope value after being called?

I am trying to prefix my users' usernames to the routes they call within my application after they've logged in. How would I achieve this in angular? I already tried using the $locationProvider and ...
0
votes
0answers
10 views

ng-animate movement of a DOM element between multiple ng-repeat'ed arrays

Suppose: there are multiple objects; there are multiple arrays; arrays can reference objects; object can (and will) be referenced only once. Simply put - object can "be" in one array at a time. ...
1
vote
1answer
12 views

When is it Necessary to Use Deregistration Functions Returned by $on and $watch methods?

Is it recommended to always hang on to the $on method, as in var dereg = $scope.$on(...) And later $scope.$on("$destroy", function() { dereg(); }); Or is this only needed for certain situations? ...
2
votes
1answer
38 views

AngularJS - Directive inside a directive

I have a very large form that has approx 75+ controls of this nature: <span> <div class="local-label" for="frontAxles">Front Axle: </div> <select ...
0
votes
4answers
54 views

JSON: All values are being converted to strings

I am using Angular($http.post) and PHP to save a json file to the server. The saved json file is having all values converted/saved to strings including numbers and booleans. This is obviously causing ...
0
votes
2answers
24 views

How to c# send notification to ajax when database changes? Wich one is the best way?

i read a little about WebSockets, Comet, WebApi, WCF, etc and want to know the best way to create a server application wich can be read from angular js app, ios app, android app, etc. Thanks I want ...
0
votes
0answers
13 views

angularjs: tabbed view design issue

So far I had one view per URL in my AngularJS application. I need to build a new view, which should have 3 tabs and I'm having troubles trying to figure out how I'm going to design the view - ...
0
votes
1answer
18 views

ng-app is not valid attribute of element 'HTML'

I am new to angularJs and while I am using ng-app and ng-view in HTML file, it is saying these are not valid attributes of element in HTML Can any one suggest Here is sample code: <html ...
0
votes
0answers
19 views

Send user ID along with any REST API call?

I am building an application with symfony2 + FosRestBundle in backend and angularjs in frontend. It is a single page application. Backend and client (consuming data from rest api/backend) are on the ...
0
votes
0answers
13 views

AngularJs - RequireJs - Access controller from module on ng-click

I am new to both Require and Angular. My question is how to access a controller on ng-click if the controller is hosted in a module. In My case I have to following files: -- This is controller ...
0
votes
0answers
13 views

AngularJS + Jasmine test scripts failing fn is not function

I'm using Yeoman to create an angular project and have modules defined as: angular.module('angularApp')<br /> .controller('LogOutCtrl', function ($scope) {//do stuff}); Test scripts via ...
0
votes
1answer
21 views

Angular.js - error with providerInjector

I have a problem with providers in angular, I get this error: Row 2696: Error: Unknown provider: a Using unminified angular v 1.06, Row 2696: providerInjector = ...
1
vote
1answer
21 views

How to check internet connection in AngularJs

This how I would check internet connection in vanilla javascript: setInterval(function(){ if(navigator.onLine){ $("body").html("Connected."); }else{ $("body").html("Not ...
0
votes
0answers
22 views

Angular basic qustion about entity

i have custom form like this. it has input type defined like this. input ng-name="prop.name" type="checkbox" ng-model="entity[prop.name]" ng-disabled="!prop.editable" What does entity[prop.name] ...
1
vote
1answer
22 views

Using closure compiler with AngularJS

We have been developing a big product with AngularJS and only recently tried to use use closure compiler for syntax checking with the help of jsdoc comments. I ran into this problem and can't find ...
0
votes
1answer
8 views

How to create in angular simple independent grid directive fully configured in controller?

I need to create independent grid directive in angular. Data and actions will be set in controller. Action can refer to other controllers or other action in parent controller. Both are possible.
2
votes
1answer
19 views

Update number boundary using ng-model

I'm trying to bound an input number using ng-model. If the input number is out of the range it will show a popup hint. <input type="number" class="input-number" id="bar-length" value="" ...
0
votes
1answer
26 views

angularjs saving $scope via a closure

Disclaimer that I'm new to angularjs :) I have a controller that delegates to a service and I'm trying to preserve the $scope so I can scope.apply after setting properties: var Build = ...
0
votes
1answer
15 views

XHR ontimeout() in AngularJS?

I'm looking for a way to run a function when a $http call gets a timeout. There's and event handler in XMLHttpRequest called ontimeout but I can't find a way to do this in AnguarJS with $http. Any ...
0
votes
1answer
13 views

Cant Get AngularUI Sortable Demo to work

having trouble getting a simple sortable demo for angular-ui going here- http://jsfiddle.net/B3YDr/: <div ng-app="myApp" ng-controller="myCtrl"> <ul ng-model="items" ui-sortable> ...
0
votes
2answers
44 views

AngularJS Controller wait for response (or set callback)

I have a AngularJS application with a controllers.js and factories.js. What I like is to do something with the values in the controller (which I get from the factories). My problem is, that these ...
0
votes
0answers
17 views

AngularJs-RequireJs Argument 'authorizationController' is not a function, got undefined

First of all I would like to mention that I am new to both AngularJs and RequireJs. My issue is that when I am declaring my controller using 'ng-controller' the following exception is raise: Argument ...
0
votes
1answer
25 views

AngularJS: bi-directional communication between two scopes/controllers via a service

I have quite a few scenarios where I need clicks, etc. to trigger behavior in another place on the page (a one-way communication scenario). I now have a need for bi-directional communication, where ...
0
votes
1answer
20 views

Why I am unable to inject angular controller?

Today I decided to change the method I am injecting my controller. I managed to use "$inject Annotation", as explained here. NetworkInterfaceDetailedViewController.$inject['$scope', '$routeParams', ...
0
votes
1answer
15 views

How to pass ng-click executable action (&) in variable into directive?

HTML view with directive: <div click aaa="aaa()" action="action"></div> Controller: I like to pass function bbb() in $scope.action: app.controller('MainCtrl', function($scope) { ...
0
votes
3answers
33 views

Angularjs: how to pass scope variables to a directive?

I try to use directive to create and append several tags to a div. I just checked what can I got in the directive: module.directive('createControl', function(){ return function(scope, element, ...
0
votes
1answer
29 views

AngularJS: data-ng-model & data-ng-hide/show

My index.html page is like as follows: <div id="sidepanel" data-ng-controller="ListCtrl"> <li data-ng-repeat="record in records"> {{record.id}} <input type="checkbox" ...
0
votes
0answers
35 views

AngularJS - server-side rendering

As you may know, AirBnb opensourced Rendr (http://nerds.airbnb.com/weve-open-sourced-rendr) which should enable server-side rendering of Backbone apps. This is cool, because one can run the first ...
1
vote
2answers
31 views

Angularjs - Binding service data to models in many controllers

There is a simple example, what I want achieve, is when the text field is changed, both models should change. Is this possible without using $watch?
0
votes
1answer
28 views

$http request in Angular 1.1.4

I have a list where you can pull down to refresh. This event is fired inside a directive that handles the detection of the pullable list, the element looks like this. <div class="pull-to-refresh" ...
2
votes
1answer
22 views

Toggle watch on/off in AngularJS

Is it possible to toggle a watch on/off in a simple way or signal that the watch should/shouldn't run right now? I know that I can unregister a watch, but how can I reregister it? In my case I have ...
1
vote
3answers
26 views

AngularJS: How to target specific directive with multiple instances

I have multiple instances of a directive and I would like to target a specific instance only. For example in the code below, how can I make sure that the div with class="one" is the only one that ...
0
votes
1answer
24 views

How to get externally changed value of select into angular model

I am creating a directive that is using this timezone picker jQuery plugin, so that we have a timezone picker "widget" throughout our app. The problem I'm running into is that when you select a ...
1
vote
1answer
18 views

What's the right way to use filters with transclusion in directives?

I'm trying to apply a filter to the transcluded text in my directive but I'm not sure what's the best way to do this. A working copy of idea is at the following link but I feel I'm sorting of cheating ...
0
votes
0answers
21 views

How to set Authentication in Angular JS based on User

I have created application in Angularjs using Restful API. I have created teams and their members and my URL for that is http://localhost/index.html/home/team/admin/1 1 => specifies Team 1 => which ...
0
votes
1answer
26 views

AngularJS manual injection

I think I must have read the tutorial incorrectly, but I just can't seem to get manual injection working correctly on my project. I'm about to minify and mangle my js so I thought I'd go through the ...
0
votes
1answer
28 views

AngularJS form wizard save progress

I have a service in AngularJS that generates all the steps needed, the current state of each step (done, current, show, etc) and an associated directive that actually implements the service and ...
1
vote
1answer
20 views

How to register two modules to ng-app?

In my application I have two modules, which are used for routing. Here is the code of it //Module1: angular.module('phonecat', []). config(['$routeProvider', function($routeProvider) { ...
0
votes
0answers
27 views

Creating Rich Text editor AngularJS

I know there are lots of great rich text editors out there that can easily be ported to angular and plenty of discussion on how to do this, but I'd like to create my own. I have the basic idea ...
1
vote
1answer
33 views

angularjs factory $http service

I am trying to understand the concept of factory and service in Angular. I have the following code under the controller init(); function init(){ $http.post('/services', { ...
0
votes
1answer
21 views

How do I call an Angular.js filter with multiple arguments?

As from the documenation, we can call a filter such as date like this: {{ myDateInScope | date: 'yyyy-MM-dd' }} Here date is a filter that takes one argument. What is the syntax to call filters ...
0
votes
0answers
37 views

How can we use rails routes with angularjs in a DRY way?

First of all,I would say sorry for my broken English and the broken codes...(many words here come from google translation...so, I'm afraid that I can't make myself clear...so, I paste all the ...
1
vote
1answer
29 views

How to capture URLs with arbitrary number of slashes in angular.js?

I want to make an angular site dealing with files where users can navigate around in a file system tree, (like on github: github.com/angular/angular.js/tree/master/path/to/my/file.js. I would like to ...
0
votes
0answers
34 views

redirect using the $location variable with angularjs

i followed the directions from this post: Redirect using AngularJS here is my user.js service: 'use strict'; staticApp.factory('user', ['$scope', '$http', '$q', '$location', function ($scope, ...
-1
votes
0answers
16 views

Facebook and passportjs error

I m trying to use Passportjs with Angular and express. I am trying to test facebook strategy in passportjs. The authentications seems to succeed but does not navigate to the callback url. It simplay ...
0
votes
1answer
16 views

Angular UI: Unknown provider: dialogProvider

I am trying to replicate the following Angular UI example of a simple dialog with a close-button. https://github.com/angular-ui/bootstrap/blob/master/src/dialog/README.md. However, I cannot get the ...
0
votes
1answer
27 views

Hide element if angular attribute is empty

I have an image element that is getting its path from an attribute I have on my angular object. However if this (imagePath) is empty I get a broken image. I would like to not render the image if the ...
0
votes
1answer
25 views

Getting a firebase list from an array of indexes

I have an index of ordered stories: { index: ["storyA", "storyB", "storyC"] } I want to get the referenced stories and pass it into angularFireCollection { index: ["storyA", "storyB", ...
0
votes
1answer
25 views

Submit $http.post From AngularJS to Django Server

Is there a trick to submitting POST data from AngularJS to a Django server? I am receiving a 403 (Permission Denied) when I attempt my POST call. I have the following button defined: <button ...

1 2 3 4 5 99
15 30 50 per page