AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability and 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
5 views

AngularJS: Returning “Subsets” of Data from a Factory

I have this factory: (function(){ var requestsFactory = function(){ var requests = [ {id: 1, title: 'First Request', status: 'In Progress'}, {id: 2, title: 'Second ...
0
votes
1answer
4 views

How to use angulars templates when loading other pages with onsenui

I have a search page for user input: <ons-navigator title="WELCOME" > <ons-page class="center"> <h1>PICK SOMETHING</h1> <ons-search-input ...
0
votes
1answer
9 views

Is $$isocateScope:true the right way to make all the link functions of all directives on a node use the isolate scope?

I have a node with an isolate scope directive. There are more directives on the node, which have link functions. These link functions do not have the isolated scope as first argument, but the root ...
0
votes
2answers
9 views

Angular binding does not change

i have this controller and this view (html). if i give an initial value to $scope.article.Context, it will be shown in the view. (means that the view recognizes the controller). when i change the ...
0
votes
0answers
5 views

Angular & Highcharts. Set state to hover programatically

I have a chart with 50 points and a table below with 50 columns. The 50 column table holds detailed information of the same data that is coming from the chart. When you mouseover the series point, ...
0
votes
1answer
7 views

Angular beginner: How to use factories + $http + json file?

I have a factory that doesn't work: toDoListApp.factory("blahFactory", function($http) { return { getChores : function() { return $http({ url: '/chore.json', ...
0
votes
0answers
13 views

Route reloads entire page and view

I am developing an app, and in the app, there are some "utility" buttons that when clicked will, say, show the user some information. For example, a question-mark button, that when clicked, shows the ...
0
votes
1answer
11 views

A module with two dependencies

I'm trying to build up a REST client written in AngularJS that uses $resources for consuming the REST service and ng-grid library for the User Interface. By using just the $resource module dependency ...
0
votes
0answers
13 views

Angularjs - http get return html text instead json

My web app is using angularjs with spring mvc. When hosted in localhost the http get works fine in all browsers. But once hosted in a diferent server the http get returns the html of main tenplate ...
0
votes
1answer
16 views

AngularJS - expression as function parameter in ng-repeat

Can I pass expressions from ng-repeat as parameters to a function attached to ng-click? This <a ng-repeat="foo in bar" ng-click="foobar(foo.link)">{{foo.name}}</a> and this <a ...
0
votes
1answer
21 views

angular js directive to replace ng-src on img tag

Currently I have an image tag in which I need to do a JavaScript replace on. was looking online and I've read some peoples thoughts about using a directive to achieve this but haven't found an example ...
0
votes
0answers
20 views

Page stalls when trying to compile recursive directives in Angular

This is my template for comments, notice that app-comment is called again, making it nested and recursive: <div> <div class="app-comment-main"> {{ comment.body }} ...
0
votes
1answer
11 views

angular changing the url location without reloading the page

I have some partials which are loaded with some URL templates/test.html for example. This TemplateURL will always be relative. I want to use the same templates in different locations within the ...
0
votes
1answer
10 views

updating render when ng-include changes angular

I am new to Angular - my issue - when I call $scope.editProfile() the value of panels.left is changed in the factory but the content on the page does not change. In the html file I am using ...
0
votes
2answers
20 views

AngularJS Prefetch data from directive

Is there any way in AngularJS to prefetch the data from url. I heard of template cache. Can template cache load the contents from path ? I have created a directive, But I am facing problems. When I am ...
0
votes
1answer
17 views

How to combine angularjs and xhtml?

Here is an example of a minimal example for angularjs which works when saved as angular.html: <!DOCTYPE html> <html lang="en" xmlns:ng="http://angularjs.org" ng:app=""> <head> ...
0
votes
0answers
14 views

Sending emails using AngularJS

I am very new to AngularJS. I want to send emails. Is the server side code necessary to send emails if I am using AngularJS? How to send emails using AngularJS? I am a .NET guy. I am using Visual ...
0
votes
1answer
22 views

JQuery & AngularJS - First object not recognized by selector

http://pastebin.com/HBGevwkV In my view, I have a table. Rows are generated by the $scope.addScheduleElement() function. The default/initial row is auto-generated by the $(document).ready() call. ...
0
votes
1answer
13 views

How can I use HTML5 geolocation in angularjs

How can I use HTML5 geolocation in angularjs?? I can get it using HTML55; but how can I pass it to angularjs scope in controller??? any sample jsfiddle will save my day!
0
votes
0answers
21 views

angularJs with only one template for all category?

sorry for my English is not good ! I have followed this example phoneCat app this is one category ( phone list and detail patial templates). for example , i have many category, all in one ...
0
votes
1answer
8 views

error while configuring resource provider

I have the following code where i am trying to populate a table RESTfully by using ngResource. But when i add configuration directives i get uncaught object MINERR ASST:22 var app = ...
0
votes
3answers
15 views

AngularJS directive on click event not responding

I have the JQuery following code in my client app design which I am trying to convert to AngularJS directive as shown below, but for some reason the on click event is not responding (nothing happens ...
0
votes
0answers
18 views

Fire directive, refresh, & pass parameter on ng-click

tldr; I need to fire a custom directive/jQuery plugin on ng-click and pass a parameter to it then reload that page so the parameter's value takes place. So on reload instead of there being 3 results ...
0
votes
2answers
20 views

AngularJS filtering on categories

I started playing with AngularJS earlier today and I decided to build a simple app that consists of categories containing items. The app has a sidebar where the categories are listed ...
0
votes
1answer
13 views

AngularJS: function always evaluates to false because of Async nature of service

My Template looks like <div data-ng-if="budgetSummaryExists()"> <span>You have not budget</span> <button type="button" class="btn btn-danger" ...
1
vote
1answer
14 views

How do I have a form submit values to an ng-repeat list item that's on the same page?

I asked this as part of another question yesterday, but I think it is best to break this into its own question. I have a registration form which asks the user for name, address, email, etc. In ...
1
vote
1answer
24 views

Angular ng-repeat in an ng-if wrapped in another ng-repeat

Not sure exactly what's going on, but it looks like my expressions are not getting evaluated or expanded. <div ng-repeat-start="q in questions"> ...
0
votes
0answers
13 views

Android 4.1.x Crash with AngularJS/Cordova 3.4

I've adopted some code that for the most part is fine, but there is one feature that causes a crash 100% of the time on Android 4.1.x (4.1.1 and 4.1.2, on an actual device and in an emulator) using ...
0
votes
1answer
17 views

How to use Twitter API from client side?

I'm trying to get information from twitter using angularjs and passport. I've made the authentication through OAuth using passport js - it worked well - saved user information in a session. Now ...
0
votes
1answer
29 views

redirect to different route when root url changes

I am developing an anuglar + nodejs app and run into this problem. I want to set up the following url mapping: localhost:3000/ => node server serves index.html on server side and then anuglar serve ...
0
votes
1answer
14 views

Claims-Based Authorization with Angular.JS and WIF

We have an application built with ASP.NET MVC 5. For that application, we've built several URL-related HTML helpers that act like this: Imagine there is an anchor that leads to certain URL, i.e. ...
0
votes
1answer
14 views

Need guidance on rails with angular js

I have some experience with Ruby and basic java but not with any web development projects or javascript. I want to learn Rails with Anugular JS. Given my background, can you please point me to some ...
0
votes
0answers
10 views

Angular ABN tree: how to select an element from code?

I am using ABN tree and I would like to select a particular element from code, primarily so I can implement a search function. I tried setting the "selected" property on the relevant element. This ...
0
votes
1answer
39 views

angular js update json on interval and update the view

I've been trying to find a solution on the internet to be able to update my $http json request on a set interval time and at the same time have it update my bindings with the new data. I've seen some ...
0
votes
2answers
31 views

Angularjs get request for a huge json file

I need to display some data from a database to the user. The data is in a json file and has a pretty huge size. The size of json file is roughly around 15MB. I created a service and used the promise ...
0
votes
2answers
13 views

how to pass different variables in Controller, in different states

Using resolve property in $stateProvider I am new to angularjs and trying to use the stateProvider like $stateProvider // Category routes .state('category', { ...
1
vote
1answer
31 views

Advanced AngularJS live Search

I have the following data persons = [ { "age":20, "parameter1":94, "name":"Foobarin" }, { "age":33, "parameter1":49, "name":"Johan" } ] I want to create an advanced live ...
0
votes
2answers
28 views

Directive talks to controller but cannot call functions residing in controller

I have a directive which needs to call functions from the Main controller but everytime i try to reference a function inside the directive nothing happens because it's undefined. When I access a value ...
1
vote
1answer
12 views

Isolating re-used controller scopes with AngularJS

I'm currently working on a project where I use a primary navigation to open tabs which lazy-load templates. EDIT: to clarify, the number of tabs can vary on a user basis, so I cannot do this hard ...
0
votes
1answer
20 views

How does $injector service inject itself in AngularJS

An AngularJS app depend on the $injector service to inject other built-in or customize services in controller,directive or other injectable things, but how $injector service inject itself,just like : ...
1
vote
0answers
29 views

UI does not display anything when a method is being called

My setup: I want to call a java method which accepts a string from UI and returns a JSON String. This method takes 5+ seconds to compute and return the JSON String. This method is not even being ...
1
vote
1answer
25 views

Parsing JSon data in AngularJS from $http call

I'm very new to both web development and AngularJS. I am trying to write a web page that will automatically update its info based on JSon files sitting on my server. I can get the json data but I ...
0
votes
1answer
20 views

Enable and Disable other items in ng-repeat with Angularjs

I have a list of user in my controller . var app = angular.module('app',[]).controller('userList',function($scope){ $scope.users = [ {name:'A',family:'B'}, {name:'C',family:'D'}, ...
0
votes
2answers
27 views

AngularJS Populating input field with directive but not captured in $scope

When I populate an input field from within a directive, it shows on the DOM, but $scope is not capturing the value. How do I fix it so that $scope captures the new info? How to reproduce the ...
0
votes
1answer
30 views

Check for 401 then redirect Angularjs but only on certain routes

I've got a nice angular service that checks to see if a user is logged in by looking to see if the server returns a 401 error message. If it does, the user is redirected to a login page. This works ...
1
vote
0answers
33 views

AngularJS: A slow java method is not being called from user interface

My setup: I want to call a java method which accepts a string from UI and returns a JSON String. This method takes 5+ seconds to compute and return the JSON String. This method is not even being ...
0
votes
1answer
17 views

How to run a node.js app on ec2

I want to run a node.js app on amazon ec2 instance. here's what I have done. npm install -g yo npm install -g generator-angular yo angular grunt serve and this is the snippet of the Gruntfile.js ...
0
votes
1answer
23 views

Angular ng-grid in a nested tab

I have an app based on this plunk. My app has grown & it probably too large & complex to post here, so let's just continue to discuss the Plunk on which it is based. Basically, I just want ...
0
votes
0answers
20 views

Testing promises with angularjs order of execution confusion

I'm testing a promise with angularjs jasmine, and sinonjs. I'm puzzled by something regarding promises. Here is my code: it('should return data with length 4 ', inject(function ($rootScope) { ...
0
votes
0answers
21 views

jsonp call not returning data in angular?

I am trying to return data through a JSONP call from my angular application. I tried this workaround: angular $resource with jsonp not working. All I did was replacing it for my webapi link and ...