0
votes
0answers
4 views
Does AngularJS support async module loading like RequireJS?
According to this repo AngularJS is implimented with RequireJS for async module loading.
In this repo the AngularJS team gives a seed for AngularJS projects with async module loading that does not ...
1
vote
0answers
13 views
$http doesn't work in asynchronous method - AngularJS and PhoneGap
I try to make an application with PhoneGap and AngularJS that can be used online and offline (for Android device).
I want to get a list of people from the local database if the device is offline, and ...
3
votes
1answer
22 views
Benefits of creating new modules in my application
Could anyone explain me what is the pourpuse of create new modules in angularjs application, I have already read the documentation, but we are not quite sure about when is appropiate to create a new ...
0
votes
1answer
15 views
Create a select with attributes from JSON in AngularJS
I would like to create a select with your attributes(select id,select class) coming from JSON (that it's defined in my controller).
There is a way to do that? Or Does I need to do dynamic partials ...
2
votes
1answer
44 views
Can function and closures replace classes in Javascript?
I was reading about AngularJS and came across the following statement on a newsgroup:
I have to say, though, that the more I use Angular, the less interest
I have in creating classes. Classes ...
0
votes
1answer
15 views
Angular IE Caching issue for $http
All the ajax calls that are sent from the IE are cached by Angular and I get a 304 response for all the subsequent calls . Though the request is the same, the response is not gonna be the same in my ...
-1
votes
0answers
11 views
Angular retrieve a value from the model based on the locale
New to angular. I have a json response that contains localized names for 4 languages.
Now in my app I want to show the name for the locale that the user is currently using.
Let's say if the user is ...
0
votes
0answers
20 views
Getting Dynamic id (from AngularJS) in getElementByID
I have a clickable drop-down List as following:
<ul class="dropdown">
<li ng-repeat="item in items" ng-controller="ListCtrl">
<a href="#" ...
0
votes
0answers
16 views
testing a directive's template function where attrs defined in link function
How do you test an angularjs directive's template function's attributes where the attributes have both functions and angular binding values that are defined in the link function?
This is the ...
4
votes
1answer
111 views
What is the lifecycle of an AngularJS Controller?
Can someone please clarify what the lifecycle of an AngularJS controller is?
Is a controller a singleton, or created / destroyed on demand?
If the latter, what triggers the creation / destruction of ...
0
votes
1answer
34 views
AngularJS: How to get elements off the scope in a link function
I have a directive that get's a JSON array from the controller off an attribute named stuff. That part works fine. What I'm trying to do now is make a link function that will use the length of that ...
0
votes
1answer
43 views
Angular.js $resource data processing
I have a server side REST api, which can return a jsonyfied data with arbitrary structure. On a client side I have an Angular application.
Resource is defined:
module.factory('SearchQueries', ...
2
votes
1answer
38 views
angularjs: allows only numbers to be typed into a text box
In angularjs is there any functionality available that allows only numbers to be typed into a text box like
0
votes
1answer
34 views
Calculating how many times 'ng-repeat' has looped, then export as a string/value in Angular.js?
I am currently trying to build a 'like' function in to my Angular.js app. I have the basic 'like' section, with the following code:
$scope.likeClicked = function () {
if (!hasLiked) {
...
0
votes
1answer
26 views
Access previous element item in angularjs filter
When creating a filter in angularjs how do I access the previous item in the array?
i.e I want to compare the current element to the previous one