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

Having problems getting karma to work when absolute directive paths are used

This problems requires a little background, so bear with me. I have a number of angular directive tests that were initially passing via karma with the following karma config, angular routing and ...
0
votes
1answer
14 views

ng-class directive call executed twice

Simple html: <table class="table table-condensed"> <tr data-ng-repeat="customer in customers" data-ng-class="customerSelectedClass(customer)"> <td> <a href="" ...
0
votes
2answers
19 views

Converting Angular ng-model to integer when writing to Firebase

I am using AngularFire for taking inputs and saving them to my Firebase database. Currently, I have an input for entering the price of a service, like so (I am using an input type of "text" instead of ...
0
votes
1answer
23 views

Fix race condition with independent AngularJS controller

In my Angular application I have a main view that changes according to the route, and then a sidebar that is displayed no matter what. My HTML looks like this: <div id="container"> <div ...
1
vote
0answers
8 views

traverse firebase list (previous and next sibling)

Is it possible to get the next child in a firebase list? I'm using the 'push()' functionality for lists. When I remove one item from the list I want to select the adjacent element so that there is ...
0
votes
0answers
10 views

Upload files to Angular or Rails

I´m trying to integrate a Blueimp Jquery File Upload plugin in my application. My application has an AngularJS front-end running in a Node.js server and a Rails API backend running in a WEBrick ...
0
votes
1answer
19 views

UI-Router : Can I get always the same controller?

I'm using UI-Router to have some "menus" in my application. $stateProvider.state("list" url: "/Focales" templateUrl: "/demo/focals.html" controller: FocalCtrl) ...
2
votes
0answers
21 views

Cannot test a directive that removes an HTML node element during $compile time

Test: I have provided a full mock of the service function that I need for my directive. When running the test in debug mode(by adding a break point) the everything seems correct. Tried so far: ...
1
vote
1answer
17 views

angularjs required field validation working incorrectly

I modified one of the starter angularjs demos and I'm having trouble getting the required field to work correctly. I can successfully prevent blank submissions but the "required field" will pop up ...
0
votes
0answers
23 views

AngularJS BooutstrapUI Typeahead with dynamic data

I'd like to find the way to pass to the Angular UI typeahead dynamic data. The problem is that when I've got the data the popup doesn't appear. So, is there any method to open the typeahead popup ...
2
votes
0answers
28 views

useminPrepare causing a `src` error

My index.html has: <!-- build:js scripts/modules.js --> <script src="/app/bower_components/angular-route/angular-route.js"></script> <script ...
1
vote
2answers
30 views

How to handle async code that calls another async code [AngularJs]

I have factory that's using indexedDB and method getRecipe that needs this indexed db to receive data. Problem is that indexedDB returns it's instance in asynchronous call and getRecipe is another ...
0
votes
0answers
21 views

Include Javascript module (AngularJs) in WAR

I am trying to separate my front-end and back-end parts into 2 modules. Parent | pom.xml | |--Back-end |- pom.xml |--Front-end | |- pom.xml My back-end module produces a WAR. I would ...
0
votes
2answers
26 views

Passing argument(s) to a service in AngularJs

I am trying to configure my first tidbits of the AngularJs for a trivial stuff, but unfortunately unsuccessful at it after considerable amount of time. My Premise: Users select one of the options ...
0
votes
2answers
25 views

$scope.$watch of angular.js not triggered

I figured out that the $scope.$watch does not get triggered, when the target of the $watch gets set to the same value as it currently holds. I have created a sample JSFiddle ...

15 30 50 per page