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

Angular resource timing out

I'm having an issue where I'm calling a database query from my backend via the page controller and if the function doesn't return instantaneously in the backend controller, then an error is hit in the ...
0
votes
0answers
6 views

Getting access error when get the content from Angular Rest call (Http Get) to

I'm trying to get the content from Stash api using angular rest call showing below, But, Im get I'm getting below access error : XMLHttpRequest cannot load ...
0
votes
0answers
4 views

ui-router's default view on Ionic + Material + iOS device will not display

I'm stuck on getting ui-router to play nice with iOS emulator & actual iOS 6+ using Ionic and Angular Material for everything frontend. The web app works fine but compiling for iOS shows only the ...
0
votes
0answers
7 views

Calling a AMD code inside an angularjs 2 component with SystemJS

Is it somehow possible to use inject the following code in angularjs 2 component which is transpiled using systemjs? require([ "esri/map", "esri/dijit/Search", "dojo/domReady!" ...
0
votes
0answers
5 views

Issue automatically updating firebase application

I am working on creating an online multiplayer board game app using firebase. I want the board to update for the players automatically when a change is made on the board. Instead if a change is made ...
0
votes
2answers
20 views

Angular JS callback after ng-repeat is completed dynamically

There are tons of posts showing how to have callback functions based on a directive so that when an ng-repeat function is finished you can wait and then call a function. For example here is my ...
0
votes
1answer
8 views

Load angular tree repeat plugin in jsfiddle

I am trying to run the following example on jsfiddle. Perhaps I did something wrong by loading the plugin and libraries. Could some one please examine the issue? <ul> <li sf-treepeat="node ...
0
votes
1answer
13 views

Using ng-change in AngularJS with “Controller As” syntax

I am trying to avoid using $scope in my controller function, instead opting to use var viewModel = this; with "controller as" viewModel syntax. My problem is that I need to use ng-change to call a ...
0
votes
0answers
11 views

Unknown provider: $ionicAppProvider when it exists and defined

Similar issue to Unknown provider: $ionicAppProvider However I have all the elements and everything loaded fine app.js angular.module('starter', [ 'ionic', 'ionic.service.core', ...
1
vote
0answers
15 views

Sorting ng-repeat with alternate ordering

I am trying to sort a client list using ng-repeat in Angular so that the column with ratings "Hot", "Warm", and "Cold" presented in that order. Currently when it sorts the Rating column it puts them ...
0
votes
0answers
26 views

Whats the Regular Expression for validating Decimal Values within range - 0 to 99999.00

I am looking for a regex to validate decimal number to be in range of 0 and 99999.00 upto 2 decimal values in AngularJS. I dont want to use max in angularJS, instead I want to use ng-pattern. I tried ...
0
votes
1answer
20 views

How do I get $index named variables to work in angular?

I have a div on my html that is coded as follows: <div ng-repeat="loss in Model.plDetails track by $index"> <div class="col-sm-2"> <div class="input-group"> <input ...
0
votes
2answers
28 views

Why isnt this drop down populating with working links?

I am studying bootstrap by making changes to examples. The drop down menu that I am trying to create should have three links. The main tab should link to someroute, while the two links that are ...
0
votes
1answer
9 views

Setting selected attribute on option on ng-options

Problem I have two API's which returns vehicle information and vehicle types. When I go to my vehicle edit view the drop-down menus for VehicleType and others are not being set to their corresponding ...
0
votes
1answer
8 views

Error when trying to unit test a basic service on AngularJS

I am new to unit testing AngularJS with Jasmine. I am trying to set up a very simple environment. This is my karma.conf.js file: module.exports = function(config) { config.set({ basePath: '', ...
0
votes
0answers
4 views

Using Angular-Charts for extenal storage percentage using doughnut as canvas

The plan is to make a donut chart for external storage percentage depend on free size (which can be seen inside the donut ring) , and used size (which can be seen below the donut). Below link is the ...
0
votes
1answer
14 views

Use $http data in service

I want to create a small mobile invoice application to view invoices, update them and manage client data. Therefor i want to create a service, that first loads all the invoices via an API and then ...
0
votes
0answers
4 views

ASP .net FormsAuthentication Authorize attribute not working on AWS

I have an AngularJS app running in .net and I'm using FormsAuthentication and the following way to authenticate users:http://www.seankenny.me/blog/2013/10/02/angularjs-formsauthentication-in-net-land/ ...
0
votes
1answer
6 views

ngTagsInput - how to clear results on selection?

Currently, I am making use of ngTagsInput directive for my search bar. However, I am having trouble finding a way to clear results on selection or prevent the tags from rendering in the search bar. ...
0
votes
2answers
14 views

Change var value in Service.js

I am using Ionic to make a mobile app. I stored "blue" as an initial value. Now I want to change the value in service. .factory('repository', function() { var theme="button-calm"; ...
0
votes
1answer
11 views

How can i take two date pickers and sort data with my start and end date but json data containsis 5/12/2016 while angular sorts only 05/12/2016?

My json data contains like this [{ "id": 1, "city": "Neftegorsk", "start_date": "4/13/2013", "end_date": "5/18/2013", "price": "55.82", "status": "Seldom", "color": ...
0
votes
0answers
7 views

how to customize angular-datatables' style

I'm new to angular, trying to use angular-datatables library http://l-lin.github.io/angular-datatables/#/angularWay, but don't know how to control the style of the table, cause they are all angular ...
-1
votes
0answers
20 views

TypeError: l.setAttribute is not a function at f (html2canvas.min.js:7)

I am using jsPDF(src = cdn.rawgit.com/MrRio/jsPDF/master/dist/jspdf.min.js) and html2canvas(src = cdn.rawgit.com/niklasvh/html2canvas/0.5.0-alpha2/dist/html2canvas.min.js) for creating a pdf from my ...
-1
votes
1answer
16 views

GET data from Express to Angular

Can you guys please help me. I've been trying to learn angular recently and I came up with this little problem that I can't dispaly data from server in simple angular app. I've created an express ...
3
votes
1answer
27 views

How to call a function when input is cleared in AngularJS?

I know Angular has simple syntax to display messages or update css, but what I'm trying to do is actually call a function. <input ng-model="somefield"> <span ...
0
votes
0answers
10 views

Accessing ng-repeat object - ngDialog with AngularJS

I've just started using ngDialog with AngularJS and can't seem to be able to access objects created using ng-repeat with $scope. I pass ngDialog object fetched from my REST API, then I use ng-repeat ...
0
votes
1answer
5 views

Angular ng-mock - help matching url routes

I'm trying to use ng-mock to fake a DELETE request but keep getting Error: Unexpected request: DELETE /api/1.0/package/1. How do I properly define the mock url to match the factory request: function ...
0
votes
0answers
4 views

AngularJS 2 Google maps initialization

I'm new in AngularJS world My question is about integration AngularJS and Google Maps API. For example, in common JavaScript approach(as per Google Docs Specification) we just need to add init ...
0
votes
0answers
11 views

AngularJS: How to use an object property as a filter expression

I have the following filter set up in one of my directive views: uib-typeahead="option as option[config.label] for option in options | filter: { config[label]:$viewValue } " The 'config' object is ...
1
vote
1answer
24 views

Angular: Unable to find the index of an array

I have a controller which looks like this: MyControllers.controller('ContentCtrl', ['$scope', '$http', '$routeParams', function($scope, $http, $routeParams) { ...
0
votes
1answer
16 views

angularjs : how to get width from a $element in directive without using jquery

I try to get a width from a $element in directive. but, it continues to return 0. Can you tell me what is the problem? and, can you tell me the solution? To see problem, i've created a demo : ...
0
votes
0answers
12 views

How can I scope value uniq?

In my app.js has some data how can I write the author field between to the selection tags? I mean the two photographers has 4-4 pictures but I want to see they name just once and a random picture from ...
0
votes
1answer
12 views

ngRepeat through Array, hide other arrays and use next/previous to display

I have an api that has 8 array objects that display fine but my angular code will not hide or show one array at a time. This is just a testing code and will be separated out later. The buttons work ...
1
vote
0answers
33 views

Why can't AngularJS view send data to this re-usable service?

An AngularJS app needs to re-use multiple custom objects. I am concerned about creating cluttered, redundant code that is hard to maintain, so I moved re-usable code to a service that can be ...
0
votes
1answer
10 views

Angularjs load List.html or Grid.html based on user selection in NavBar

I am using Angularjs UI Layout to support resizable splitter. I need to implement List/Grid View for main html file. Such that based on the user selection of button List or Grid in Nav Bar, i have to ...
0
votes
0answers
14 views

Angular Error :Uncaught Error: [$injector:modulerr]

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script ...
0
votes
0answers
3 views

code to add or replace field in database using pouchdb

is my code right to add or replace a field in my users database ? I am asking because I am getting a 409 error: added field: favoritePro to doc 2014-07-17T19:21:57.650Z error from addToExistingUser: ...
-1
votes
0answers
8 views

Google Maps API v3: How can I prevent the current location from changing while dragging map?

I'm working with Angular UI's angular-google-maps package to set up a map that tracks your location. I need to be able to keep a radius around the user's actual location using Circles while allowing ...
0
votes
1answer
9 views

Elegant way in Angular to enable submit if all child forms but the last are valid

In the simple Angular app I'm working on there is a parent form with various child forms that are created from an ng-repeat. I'd like a submit button to be tied to the parent form's $valid property OR ...
0
votes
0answers
8 views

How can I implement keyboard Navigation on the nodes within a sunburst chart?

I'm having trouble creating keyboard navigation/focus on the radial nodes in a sunburst chart. Does anyone have any suggestions? http://embed.plnkr.co/bOlEKo/ I'm fairly new to Accessibility ...
0
votes
1answer
10 views

Adding values in array prints values, and does not add in Angular

I am trying to add some values within an array, but instead of outputting the sum, it prints the 2 values next to each other. My array is: $scope.values = [ {amount: 5}, {amount: 5} ] My ...
0
votes
1answer
16 views

AngularJS's deferred promises

I've got a working $http.POST request in a factory whose job is to get a list object and return it. Simple as that, except the object property I'm returning it to just grows legs and leaves. I'll ...
0
votes
0answers
6 views

How to move up and down items using angular js AND strongloop

I am using angularjs and StrongLoop generated lb-services api to update my persisted store. I have implemented move up and move down of items in Angular by applying to the $scope array, the simple ...
0
votes
3answers
30 views

how to call same function with different parameter and put it in one list

I am trying to make a service call for each page and trying to put in a list. Here is my code. loadItems:function(id,pageNo){ itemsList =[]; var items =[]; for (var i = 1; i <=pageNo; ...
0
votes
0answers
13 views

Login to Spring Boot with AngularJS $http.post

I have a spring boot application and want to log into it via my angularJS service. I did log in via postman which saves the cookie in my browser, but I want to log in again using my service. Due to my ...
0
votes
1answer
23 views

Can I invoke a function within a promise chain in Angular

I have a piece of code that I have to work in, I am looking into the promise chain and am wondering if this is correct function1ThatReturnsAPromise(arg1, arg2) ...
0
votes
2answers
25 views

Angular 2: Emit events across multiple components, not just the immediate parent

This is about Angular 2: How do I access an emitted event from more than one component away? I'm emitting the event from the bottom component and can see it in the mid-level component, but not the ...
0
votes
1answer
23 views

Angular filter by multiple strings in array

The issue is that filtering for items with 2 categories does not return anything. So by filtering for 'mulder' an item with the categories "mulder" and "scully" should be returned I have data which ...
0
votes
0answers
9 views

403 Forbidden Error on Tomcat 7 When using POST or PUT

I have an AngularJS front end that receives data from a Java web service. Both of these live on a Tomcat 7 server. My application performs GET operations correctly. However, when I am trying to save a ...
3
votes
1answer
19 views

Javascript ads in Angular templates

I'm trying to render a Javascript ad in my Angular template but it will not show up. I've found some solutions when they append the Javascript to the head tag but I want the ad to be placed in my Html ...