Tagged Questions
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.
1
vote
1answer
12 views
AngularJs get count of element by class name
How can I count element by class name in angularJs?
I have tried with:
$scope.numItems = function() {
$window.document.getElementsByClassName("yellow").length;
};
Plunkr: ...
0
votes
0answers
6 views
Native mobile app scrolling, menu pane, animations (sencha touch?), the rest web tech (angularjs)
So I've built cordova/phonegap-based apps in the past, and they've been pretty good, except for just a few areas that I would like to improve by using native components. The areas that were less than ...
-2
votes
0answers
30 views
How is it possible to manipulate CSS in Angular js? [on hold]
How is this Angular JS implementation of Bootsrap CSS: http://angular-ui.github.io/bootstrap/ working here and why is it needed or used? What is happening behind the scenes for this to be ...
1
vote
1answer
31 views
Angular JS game - Creating and destroying sub-controllers with methods
I'm creating an AngularJS and HTML5-based game that consists of users finding and clicking on birds. I want birds to appear at random places on the screen. If you click a bird - or if you wait more ...
0
votes
2answers
37 views
What are the basic differences and similarities between Angular js and Express js?
So I am a bit confused in regards to the aim of Angular js vs Express js. From my understanding we use Node.js to serve Angular js but we are not entirely limited/forced to use Node.js for serving it. ...
0
votes
1answer
15 views
Calling Angular service from outside JS via .scope().call() hangs request
I'm working on adding a Google+ signin button to my Angular app and most of it is working, except for the handling of the callback result. The callback from the G+ signin is an outside JS function ...
2
votes
2answers
20 views
Chaining promises with $q in Angular
I am trying to chain promises so that doQuery(0) executes then doQuery(1), etc... sequentially until doQuery(9).
My problem is that i is always equals to 10 in the callback function.
doQuery(0) ...
0
votes
1answer
22 views
how can I use a $q promise in a service's dependencies to force the service to wait until the promise is loaded?
I'd like to be able to build a User service that depends on a utility library (that contains a logger and lodash). The code I have seems very close:
angular.module("NS.services").service ...
1
vote
3answers
24 views
unexpected behavior of angularjs ng-pattern directive
I want to validate text field using ng-patter. field should accept all characters but whitespace.
I wrote following html:
<input name="username" ng-model="username" ng-pattern='/^[\S]+$/' ...
0
votes
3answers
22 views
How can I dynamically post my message in CodeIgniter?
I just want to tell the user either with AngularJS or AJAX or JQuery, or whatever is easiest, that the username and email are already registered.
I already have AngularJS implemented for other ...
1
vote
1answer
17 views
How to give relative path in ngView of angularjs
I have a problem with relative and absolute path in an angularjs application.
Let's take a domain name like www.example.com, and I have an app in this domain called myApp.
So the link to the app is:
...
0
votes
0answers
8 views
AJAX navigation with History(back, forward) support
Trying to create something like turbolinks or pjax(navigation without full page refreshing using History API)
Got a directive push:
App.directive 'push', ['HistoryMagic', (HistoryMagic) ->
...
-3
votes
1answer
33 views
AngularJS ngView not working on server
I am using ngView of angularJS in one of my application. But it works fine on my localsystem but not working on my server.There are various views like HomeScreen,DeviceRegistration etc. When i click ...
0
votes
0answers
16 views
how can I resolve in a base state and get that resolved value when using named views?
TLDR: I can't get the resolve function in the base state to work and get my named views to display the right thing.
I've got a set of working routes with named views (docs here) that look like this: ...
1
vote
3answers
32 views
How can I get an index value from A to Z using data-ng-repeat?
I have been using before the index value like this:
{{ $index }}
What I really need is instead of getting a number I would like to get an uppercase character going from A to Z. There should be no ...