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

AngularFire objects

I've been playing with AngularFire, and I understand the documentation for collections. But I feel like I'm totally missing things when it comes to loading specific items inside the collection, by ...
0
votes
0answers
6 views

AngularJS orderby integer field not working properly

I just took the simplest demo from http://docs.angularjs.org/api/ng.filter:orderBy and just change the value of age to have different number of digit. It stop working as it expected. Its ordering ...
0
votes
0answers
20 views

Return local variable in one function to another

I'm building an offline HTML page using Angular and using ydn-db for offline storage. I have a database service like so, demoApp.SericeFactory.database = function database() { var database = { ...
0
votes
1answer
12 views

Im trying to access an array in a object, and the object is in array in Angular Js

$scope.arrays= [ { form:'Arrays accessing', name:["array1","array2","array3","array4"] }, I need to access the array1, array2, array3, array4 ...
0
votes
1answer
18 views

how to show long text with more button using angular?

i have long text like that :- "5 Simple Steps to Improve Patient Experience5 Simple Steps to Improve Patient Experience5 Simple Steps to Improve Patient Experience5 Simple Steps to Improve Patient ...
0
votes
2answers
21 views

pass parameters to several AngularJS directive instances?

Newbie question on angularJS, but don't see analogous case in tutorials having searched. How do I pass different parameters to individual div instances using the same directive definition? Here ...
0
votes
0answers
15 views

How to display an image inside an ng-grid

I'm using ng-grid to create a table in which one of the columns is an image column. Each image cell will get it's image from ng-src. At the end of the URL, there will be a specific identifier. Here is ...
0
votes
1answer
21 views

AngularJS module.directive not responding consistently

I have 3 directives that have slightly different algorithms to parse an input value. angular.module('numeric', []).directive('doublesrange', function() {...} ); angular.module('numeric', ...
0
votes
0answers
15 views

AngularJS - Pre-populate control data based on conditions. To use directives or not?

I have a requirement where I need to "pre-populate" fields in an AngularJS form based on some condition. Pre-populate here would mean a field has a value bound to it, and is not null (for UI purposes ...
0
votes
1answer
37 views

php JSON data structure for angular app

I am trying to format the a mysql response into a array of objects so that Angular can easily traverse the data. mysql result: [{ "FIAccountsID": "99", "AccountName": "", ...
0
votes
1answer
20 views

AngularJS - how to get first item in ng-repeat orderby:'title'

I'd like to know how to get the first item's data after changing the order in ng-repeat. I have created the jsfiddle which loads first item of the data. I'd like get first item after orderBy title. ...
0
votes
2answers
21 views

Why does ng-src not trigger certain property changes in AngularJS?

I have a sample directive that watches for changes in the element, such as offsetWidth. If I apply the directive to an img element that loads the url via the src attribute, everything works fine. If ...
0
votes
2answers
12 views

ui-router: A route with no view template

Is it possible to setup a route in ui-router that only has a controller? The purpose being that at a certain URL, the only thing I'd like to do is take action programatically, and not display anything ...
0
votes
1answer
13 views

Watch not firing the second time the scope is changed in directive

I am animating a sprite in a directive and have a scope variable scope.isAnimating that is being watched. When the sprite is clicked the value is inverted and the animation stops/starts. The watch ...
0
votes
1answer
16 views

AngularJS, replacing hard-coded json with $http.get and rendering the result

If I switch from the hard-coded items list in the following jsfiddle http://jsfiddle.net/rubyoma/bFJZK/ using a plain $http $http.get('/mypath.json').then (response) => response.data) The ...

15 30 50 per page