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
4 views

$scope undefined in angularjs

I'm creating an angular app for learning (I'm all new to angular) and currently stuck at this point, Following is my angular controller cookingPad.controller('RecipeCreateController', ...
0
votes
0answers
5 views

Angularjs fitlering on large json result

I'm wanting to filter on a large and deep json file using Angular. I'm able to execute the filter, but I'm missing something in order to get the repeater to update. if (angular.equals(stuff.sName, ...
0
votes
0answers
5 views

AngularUI calendar rendering eventSource events multiple times

I'm having trouble with my events being repeated until the browser just stops the script. My Model is a simple json object: [ { "title": "Event 1", "start": ...
0
votes
0answers
3 views

How do you toggle an active state ng-class in an ng-repeat item using ng-click?

<ul> <li data-ng-repeat="image in images" data-ng-click="toggle = !toggle" data-ng-init="toggle=false"> <img data-ng-class="{'active' : toggle}" src="" /> </li> ...
1
vote
1answer
19 views

Why do I get “$digest already in progress” while using pure jquery mixed with $http call?

I have this pattern (I know using pure jQuery is really bad, but I want to understand the issue): $http.get('/api/my').then(function(){ $('#item').find('input').focus(); //throws $digest already in ...
0
votes
1answer
10 views

AngularJS $provider and $injector and bootstrapping

I've been trying to get into the nitty-gritty with angular DI and really the bootstrap process at large, and I am a bit confused as to where things really happen. In my mind, the events are in this ...
0
votes
1answer
8 views

syntax for static and scope data in a same ng-click param

This href href="http://url.com.php?id={{post.id}}" become, without url ng-click="createTab(post.id);" what is the correct syntax for include url ? i tried (and many others) ...
0
votes
0answers
17 views

ng-class within ng-repeat when object comes from other object/array

PLUNKER I have an app that allows users to see info about live music and favorite the shows they like. Pushing the star button does this. They can then see this information on their own music ...
0
votes
1answer
13 views

How to pass data into an angular.js UI bootstrap modal controller

Using Angular.js UI bootstrap modal, how can I pass data into a modal popup's controller? I am currently trying: var modalInstance = $modal.open({ templateUrl: 'partials/confirmation-modal.html', ...
0
votes
0answers
7 views

huge files size when browserifying angular

I am just trying gulp + angular + browserify app and got a huge browserified file, about 2M. While all it does just require angular and a sample controller. // setup gulp task ...
0
votes
1answer
17 views

How to add preventDefault in a function where event is not the param

This is a html part of my angularjs app : <a href="https://www.youtube.com/watch?v=cRa8VRM5d5c" ng-click="createTab('https://www.youtube.com/watch?v=cRa8VRM5d5c');" ...
0
votes
1answer
7 views

angularjs karma filter unknown provider

i can't make it work!! i just look all over the internet and i try other solutions but i can't make it work. i got a filter i want to test with Karma and Jasmine, here is my code: app.js: var ...
0
votes
0answers
17 views

AngularJS ng-include only once

How can I use ng-include in such way that it's content will be loaded only once? Here is what I have: <div data-ng-if="%condition-1%" data-ng-include="%url-1%"></div> <div ...
0
votes
0answers
7 views

Testing with $httpBackend and angular-translate directive

I am expending a lot of time trying to understand how the $httpBackend and the angular-translate could work together in order to test if the translation functionality still works. I am in this point, ...
0
votes
0answers
24 views

using jQuery in Angular: anything bad about this

AngularJS noob here. I'm using bootstrap accordion in an Angular web app, and saw a post addressing a bug on the switching of collapse/expand icons ( check out this post . The post mentions a fix ...
-1
votes
0answers
24 views

Calling function through ng-click in angularJS

i want to call function through ng-click in AngularJs (from partial to angularJS controller) ... but its not working i want to save report generated in partial in database using ExpressJS + ...
0
votes
0answers
13 views

directive scope array has the same elements even though controller has different elements. why?

I have a directive where scope: { cards : "=" } In my controller $scope.cards starts empty and then after an async call to my server, I push objects into it. It ends uplooking something like ...
0
votes
0answers
4 views

How to add a angular format filter to a ngTable with dynamic Columns

I need to format my int data with | number : fractionSize I am using ngTable with Dynamic Columns. I have no idea how to implement it? plunkr $scope.columns = [ { title: 'Budget', field: ...
0
votes
0answers
14 views

Angular controller browser paint time different from directive for CSS transition

I am trying to get a slide-down effect in AngularJS & CSS with a dynamic height. I have two identical versions, trying to accomplish the same effect - a directive version and a controller version. ...
0
votes
0answers
4 views

Ionic App not able to submit get Request

I have been struggling to submit a simple get request to google places api ...
0
votes
3answers
23 views

Angularjs ng-repeat doesn't update when the model changes

I Have this code in my project. I try to add data from database using $http, but ng-repeat doesn't update de table, only shows a blank row. When I check the scope, data is already there. I've read ...
0
votes
0answers
5 views

Using FileReader & DOMParser in AngularJS

I have a user uploaded file using AngularJS and like to manipulate the file contents using XML, however, I am having difficulty in the DOMParser recognising the text file. index.html <div ...
-2
votes
2answers
24 views

Storing a variable within a service AngularJS

I am trying to pass a variable into a service that can be access from multiple states within my application. I have implemented a service and tried to pass a variable from a controller into the ...
1
vote
0answers
7 views

Protractor times out opening Chrome Driver on Centos

I am trying to run the angular-phonecat tutoral on Centos 6.5, Chrome version 33.0.1750.146, npm 1.4.3, and node version v0.10.31. I am trying to run the protractor tests: npm run protractor But I ...
1
vote
0answers
15 views

Angular PUT request pending for ever

I am developing an application with an Angular front-end (based on Yeoman) and a Symfony 2, FOSRestBundle back-end. When I send a PUT request (or POST request for that matter) it holds the status ...
1
vote
1answer
19 views

Dynamically assign Angular model to input

I'm trying to create a mini-spreadsheet for an angular app. I want to recreate a common spreadsheet feature that allows the user to click on a spreadsheet cell and then change that cell's value using ...
0
votes
0answers
5 views

Calling state-parent setup with ui-router, indepenent of page scope

My situation is: I have some nested states that have nested views. I set up the basic app structure with a single, top-level view (called app). Then I can define state views like the following, which ...
0
votes
1answer
17 views

Execute Callback in Angular View?

I have a generic directive for tables that spits out some values based on some properties, for instance: <tr ng-repeat="item in table.data"> <td ng-repeat="column in table.columns"> ...
0
votes
2answers
28 views

converting $scope into this with angularjs

I'm trying to convert my angularjs scoped functions and variables to using 'this'. I make a json request to github's api but my binding expressions show nothing. html: <div ...
0
votes
1answer
24 views

Rails is not using my parameters to send data back

I have an angular app running on rails and im trying to get data from my rails backend with parameters and it always just returns all votes. I think my problem is on my backend. It is always calling ...
0
votes
0answers
3 views

Displaying ModelState Errors with AngularJS in ASP.NET MVC

I'm trying to show ModelState errors (like ValidationSummary) in ASP.NET MVC using AngularJS. I'm unable to display the error messages that I'm getting from data.Errors Here is my code in ...
0
votes
0answers
6 views

How to customize markercluster icon when using angular-leaflet-directive

The Leaflet documentation outlines a way to specify a MarkerClusterGroup with a iconCreateFunction where you can customize the look of the cluster icons. I'm wondering if there's something exposed ...
0
votes
0answers
4 views

angularjs $cookiestore erratic behavior

I have been using $cookieStore for saving cookies in my angularjs application. Everywhere it is working fine till i found this one issue. On one page I have been receiving data from server saving it ...
0
votes
1answer
17 views

How to make AngularJS check and use data on the Rails backend?

Like say I wanted to make sure someone signing up did not use a pre-existing email address. How to make the AngularJS file interact with the Rails user model/users database to see that? Is NodeJS ...
0
votes
0answers
10 views

What is the difference between binding to a list of resources and just a normal array with angular?

I have a dilemma. I am building an app. The well trodden ground of doing.... $scope.items = myService.get({ email: $window.email }); Is fine. But I notice all the items are of type 'resource'. What ...
1
vote
1answer
16 views

Wrapping $watch/$timeout in function breaks 2-way binding if bound resource is loaded async

TL;DR Check the example I have a directive with an isolated scope where the scope looks like this: { obj: '=' }. I then need to apply that value to a model property: link (scope, element, attrs) { ...
0
votes
2answers
20 views

attached to a method? code understanding

In the codebase that I am trying to figure out, I see that a js file (myloopfile.js) being imported into another js file. I am trying to make sense of some of the code used there this is ...
0
votes
0answers
8 views

How to remove an directive slowly with angularjs

How to remove an directive slowly with angularjs ? This is my directive .I'm adding it dynamically. : .directive("deleteNews", [ 'ApkService', function (ApkService) { return { ...
0
votes
2answers
26 views

Why doesn't my ng-hide work?

Why doesn't my ng-hide on a failed json request? <div ng-controller="MainController"> <div ng-hide="onError"> Name: {{ user.name}} Location: {{ user.location}} Image: ...
0
votes
1answer
31 views

How to add controllers to a directive?

I am trying to create a directive in my app. However, I need to use directive in different places and they have their own controller. so in my directive directive('test', [function($popover) { ...
2
votes
1answer
26 views

AngularJS: how to prevent programmatic clicking of button that hits AJAX endpoint from client?

I discovered a security vulnerability with my app and I would like to fix it. On my homepage there is a button and when clicked it triggers a record to be created in my database. I would like to ...
1
vote
1answer
14 views

Angular ux-grid issues with infinite scroller. how to set limit programmatically

Hi I am using the angular ux grid here https://github.com/webux/ux-angularjs-datagrid. with the infinite scroller addon. There is so little documentation on it, but does anyone know how to ...
0
votes
0answers
17 views

Game in Phaser - JavaScript and Events in AngularJS

Hello is there someone who knows: How can I execute an AngularJs method from plain javascript. =) Thanks.!! myApp.controller("someController",["$scope",function($scope){ //Some code was here ...
1
vote
1answer
25 views

Angularjs boolean

I have two requirements, From the Json object I need to display Male for M and Female for F and Yes for bool 1 and No for bool 0 in ng-repeat (AngularJS) like <tr ng-repeat ="object in ...
0
votes
1answer
22 views

How do I set a prompt on a select using ng-options?

I have a select that uses ng-options to populate the select as follows: <select class="form-control" ng-model="Data.selectedPerson" ng-options="v as (v.Name ) for v in Data.people track by ...
0
votes
3answers
18 views

Angular directive, trigger scope function

I have a custom popup panel that I want to add functionality to close whenever the screen is clicked outside the panel. I created a directive to accomplish this, but I am having a hard time ...
0
votes
0answers
12 views

How to retrieve Select list form Servlet and fill on AngularJS form?

So i have this form built in AngularJS. i want to display a select list with prefilled values , passed from servlet. fileList.jsp <form name="fileList" action="" ng-submit="createUser()" ...
0
votes
1answer
17 views

angular data isn't showing

I'm currently having problems outputing data in angularJS from a JSON. I'm pulling JSON from SoundCloud to show song titles. Here is my app: (function() { // define the app var app = ...
0
votes
1answer
25 views

Using $scope.$apply() outside of the AngularJS world

I have created jQuery widget that basically adds more functionality and CSS stylings to the native jQuery UI Datepicker. I use the onSelect option for the datepicker to update the <input> ...
0
votes
0answers
7 views

using ui-router and databinding seems to be broken

I am using a controller in my application... when the view loads its hits the breakpoints in the controller and by all accounts it seems to work. angular.module('main.controllers', ...