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

Cannot find plugin “karma-ng-scenerio”

I am following along in a video tutorial "Learning AngularJS" by Jack Herrington that I purchased from packtpub.com. I'm trying to demonstrate end-to-end testing after having run my first unit test ...
0
votes
0answers
5 views

In ionic Framework When i use anchor tags in slide menu the page is not sliding from one page to other, there is any solution for that please?

I am creating multiple pages in my mobile app using ionic the link which i gave should slide from one page to other but it's not working can you please help me on that...
0
votes
1answer
8 views

How does angularjs handle csrf?

I am having a bit trouble understanding the following code run.$inject = ['$http']; function run($http) { $http.defaults.xsrfHeaderName = 'X-CSRFToken'; $http.defaults.xsrfCookieName = ...
0
votes
0answers
6 views

plunker Error in preview for Angular Js

I have been trying to figure this out and wanted to see if I'm missing something, I am trying to learn angular Js on plunker and all of a sudden I'm getting this error, i have references to Jquery and ...
0
votes
2answers
12 views

Conditional Table row in angularJs

I have angular display some tables with data from a json file. <div class="inner"> <div ng-controller="Picks"> ...
0
votes
0answers
14 views

firefox not storing $window.sessionStorage

I have firefox 38.0 beta version. everything was working fine. yesterday i updated it standard release which was 37.0.1. Now in my application i am using the following code. ...
0
votes
0answers
9 views

How to bind multi selected Values in Tag Picker

I am trying to bind options to multi select tag picker in angularJs. The code looks like HTML: <div class="row"> <select id="mySel2" ng-model="item.specification_name" ng-change = ...
0
votes
2answers
14 views

Get service from separate angular module

You have 2 angular modules, and one of those modules has a service that you want to use in the other module: var moduleA = angular.module ('moduleA', []) .service('FirstService', ...
0
votes
1answer
7 views

How to spyOn a function?

I have a directive that look like this: angular.module('myApp', []) .directive('myDirective', ['$window', function($window){ return { link: function(scope, element, attr, controller) ...
0
votes
1answer
8 views

How to AngularJS send token?

I'm code application for android using Angular js because I want change js for angularjs and In the code below . ` var a; function loadXMLDoc() { var xmlhttp; ...
0
votes
0answers
9 views

Using same State for multiple Menu Items in AngularJS

I am trying to use the Same State for managing all the Menu Items and the state is not being refreshed properly. My main page has the following four sections. <div ui-view="navbar" ...
0
votes
1answer
19 views

Is there any way I can find out the required length of an input field using AngularJS?

Given this: <input id="modalContentTitle" name="modalContentTitle" ng-minlength="5" ng-model="ahs.modal.data.title" ng-required="true" /> I know that I can access information on that ...
0
votes
1answer
15 views

AngularJS ng-show (not changing with boolean value)

I've got a list of items I'm displaying, and want the user to delete any of them from the list (via checkbox and a delete button). When I select the items and call a function from the button, I can ...
0
votes
0answers
7 views

Unable to find compressed CSS files with Heroku

I'm trying to host an AngularJS app with Django REST Framework backend to Heroku and am getting this error: UncompressableFileError at / 'bower_components/bootstrap/dist/css/bootstrap.css' could ...
0
votes
1answer
32 views

Why can't I do a $scope update within a jQuery scope?

I'm using typeahead to get some suggestions on an input text, this is inside a div controlled by an Angular controller. The code for the suggestion tasks works with a jQuery plugin, so when I select, ...
0
votes
1answer
16 views

Service variable not updating in AngularJS

i have a variable workingIdx that needs to be updated to the id the div it is clicked on. It updates but when i query it again, it does not show new value. My service: writingPage.service('Lctr', ...
2
votes
3answers
35 views

How to filter by property being an empty array?

I have this on ng-repeat <tr ng-repeat="website in websites"> <td>{{website.url}}</td> </tr> Each website object from websites array looks like this: { url: ...
0
votes
2answers
15 views

Alternative to $element.isolateScope() when debugInfoEnabled is false?

Using Angular 1.3.15, UI Bootstrap 0.12.1 and UI Router 0.2.13. Given this markup: <tabset type="tabs"> <tab ui-sref="home.state1" ui-tabbed-state heading="tab1"></tab> ...
1
vote
2answers
25 views

How to add a child element to a parent but only if it's not there already?

When I add some <div> of "GrainContenu" into a <div> of division, all the future additions to <div> division keep multiples of <div> "GrainContenu". ...
1
vote
0answers
11 views

Angularjs / sailsjs :Access-Control-Allow-Origin is not allowed by Access-Control-Allow-Headers

I am struggling on an issue with cors between angular js and sails.js (node.js framework) I try to fix the error: XMLHttpRequest cannot load http://localhost:1337/en/auth/forgetpass/email. Request ...
0
votes
1answer
13 views

Ui-bootstrap alerts do not show any color

I have the following ui-bootstrap code: <alert close='closeAlert($index)' ng-repeat='alert in alerts' type='alert.type'> {{alert.msg}} </alert> ...
2
votes
1answer
24 views

Compiling Another Directive inside a Directive not working

I'm developing a blog website and currently working on a post creator. The post creator will eventually allow a user to add HTML elements to their post and edit them when needed, before submitting the ...
0
votes
5answers
45 views

indexOf() == -1 doesn't seem to work when pushing to an array

I have an array which is filtered/searched when I type into the input box. When I hit return the input text is appended to the array. This is all great and it works. What is not working is the ...
1
vote
1answer
12 views

Angularjs UI Grid Totals per Row inside the row

{{ HelloWorld }} I'm trying to access the values from other columns in the same row in angular-ui-grid. I have two question that are related. How can I add the values from several columns in the ...
0
votes
0answers
10 views

MEAN.js changes logged user after update (Angular)

I've got a MEAN.js stack installed with users and articles example (viz github) and I've got a problem with users update. When admin updates some user (I am adding professions to users), the "logged ...
0
votes
1answer
21 views

Why are closures good practice for Angular? (Or in general)?

So, I've run across this idea a couple times. Basically, several sources out there are saying that using closures when defining your app.js (modules, controllers, etc.) is considered best practice. ...
0
votes
1answer
4 views

Problems parsing parameters from Angular post in Rails controller

I have an Angular.js app that sends a POST request to a Rails server endpoint and I'm having trouble passing and reading the parameters. This is how I send the data $scope.submitForm = ...
0
votes
1answer
6 views

Implement Next, Previous, and GOTO using AngularJS. The PHP version DONE

I am working on a CBT app powered by (Laravel5)PHP and MySQL and data stored and fetched from the SESSION which has navigations such as next, previous, and goto. They are working on page refresh. How ...
0
votes
0answers
5 views

How to setup the dependency for the Forge library?

I am trying to include this library (Digital Bazaar / Forge) in my project: https://github.com/digitalbazaar/forge To include the dependency and have the forge object available through my angularjs ...
0
votes
0answers
5 views

ui-route substates without nested views

As you can notice in the following code, I would like to have a view for the parent "colors" state (which will show a table with list of colors), and then each color should have it's own view, not ...
0
votes
0answers
12 views

Building Valdr custom validator

I have been trying since to build a custom validator using Valdr AngularJs plugin with no success. What I want to archive is an input text that should receive date and time format like : dd/MM/yyyy ...
1
vote
0answers
18 views

Filter either ONLY one property or all fields

I'm creating a site in which I have objects that all have a 'tags' property, which is a list of strings. I'm creating a search functionality that filters all elements in a list. If the user enters ...
1
vote
1answer
25 views

Create a smart, interactive map like the ones used on the FourSquare site

First off, I'm trying to create something like this using Angular.js: https://foursquare.com/explore?mode=url&near=San%20Francisco%2C%20CA&q=comedy In summary, here are the tools I've tried: ...
0
votes
1answer
12 views

How do I pass a JSON attribute and display it within a template in an Angular directive

The following instance works but is really fickle angular.module('app', ['components']); angular.module('components', []) .directive("hbHero", function(){ return { scope: { ...
0
votes
1answer
22 views

AngularJS $scope related to 'as myController'

I have a MainController and a PageController. The MainController manages data and gets a $scope,$http as a parameter. I use it like ng-controller="MainController" I use PageController to manage the ...
0
votes
1answer
24 views

AngularJS + Ionic. Ng-repeat. Insert element between steps in loop.

We have 2 loops. Like these: <ion-list> <ion-item ng-repeat="pair in items"> <div class="row"> <ion-item ng-repeat="item in pair" class="col-45"> ...
3
votes
0answers
35 views

AngularJS, binding to a model in ng-repeat in a directive

So I am trying to bind inside a directive (to access outside) to a model inside of an ng-repeat. So in the outer controller I have a variable I would like to bind in like //in the directive scope ...
0
votes
0answers
12 views

Angular in Web Woker

Can you get access to an angular service from a Web Worker? Most ways I see to get access are all through the DOM like: var ServiceName = angular.element(document.body).injector().get('ServiceName'); ...
0
votes
0answers
20 views

What is the difference between using Parse.com with React vs Backbone vs AngularJS? [on hold]

I am trying to build a dynamic web app using Parse.com and I need to pickup a front-end framework and would like to know the differences between React, Backbone and AngularJS I am mostly interested ...
0
votes
2answers
13 views

angular keystroke watcher not properly updating scope

I'm watching for keyboard events, specifically left, right, and esc. Each one is bound to a function that performs some scope function in the page's controller. These functions do get called when ...
0
votes
0answers
16 views

How to track if someone clicks a link to leave the page in mixpanel/GA

I am trying to track an event when user tries to leave the website by clicking on a link. <a ng-click="bookingOutside(trip,0)" href="https://www.google.com" target="_blank"> ...
0
votes
1answer
15 views

AngularJS + Rails: Unknown provider: e

After moving to production server using Rails 4 and AngularJS, I came across error: [$injector:modulerr] Failed to instantiate module EcoApp due to: Error: [$injector:unpr] Unknown provider: e. After ...
0
votes
1answer
16 views

How to use ng-repeat on <th> with ng-if (or ng-hide/ng-show)?

I am trying to achieve something like this : <th>23/03 lundi</th> <th>24/03 mardi</th> <th>25/03 mercredi</th> <th>26/03 jeudi</th> <th>27/03 ...
-2
votes
0answers
18 views

What to use with AngularJS? EJB or Spring?

We are going to start new project which is basically online excel sheet editor, in which we are gong to use AngularJS as front-end, for this project what would be the best back-end? 1. EJB. 2. ...
0
votes
0answers
24 views

Adding own cssfile to angularJS doesn't compile with grunt serve:dist

I am making my own angular project, I made for the main page my own css file main-page.css I added this css file to my head: <head> //... <link rel="stylesheet" ...
0
votes
0answers
7 views

MEAN stack pass parameter within router

I'm a newbie to MEAN stack development. Trying to follow this tutorial https://thinkster.io/mean-stack-tutorial/ to get a simple web app working. I posted my code in the following. I created a middle ...
-2
votes
1answer
13 views

How to Display Notifications part in my webapp(like facebook) using javascript(any) [on hold]

i have web-api which returns some data in json format,i need to show it as notifications(something like facebook) with any of javascript frameworks avaliable(jqry,ang js).hw can i do that? Do i need ...
1
vote
1answer
19 views

unable to pass data between the views in angularjs through routing

In my angularjs app, I am trying to pass the data from one cshtml view to another view through routing but in details.cshtml, I don't see the data coming into it though I can see the change in URL ...
-1
votes
0answers
19 views

AngularJS not loading in my page

I'm working through an angularjs tutorial right now, but I'm having difficulty getting started. I downloaded angular from the angular page a couple days ago, and now am working on the tutorial. When ...
0
votes
1answer
13 views

Angular multiple controllers $scope

I'm new to Angular and trying to figure out $scopes within different controllers. I have read alot of topics but can't seem to find out why it's not working in my code. What I want is a single-page ...