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)

4
votes
3answers
3k views

ng-repeat with track by over multiple properties

I have a problem with angular ng-repeat directive. Currently I work on some project where from the API I get a list of items (some times it could be 1k items) and this list should be refreshed every 5 ...
1
vote
2answers
30 views

AngularJS - 'Controller not a function: Seperate controller files

I am getting the 'Controller is not a function error in my application. From what I have read the most common issue is that it the controller file is not referenced in the html page - this is not ...
0
votes
1answer
11 views

Angular $setPristine is not working

Html : I'm using controller as syntax. <form name="occupantDetailForm" role="form" novalidate class="form-validation"> <div class="form-group form-md-line-input ...
0
votes
1answer
16 views

AngularJS ng-init directive is assigned with function and promise

I was trying to use promise from geocoder lattitude and langitude. that need to be trigger from the ng-init directive. but I was not able to use promise inside a function. plunker for example my ...
19
votes
2answers
7k views

What is the difference between $state.go(app.location) and $location.path(“app/location”)?

I have recently started using ionic framework, it has angular js in it. To navigate between screens, I was using $location.path and it's working great. However, in an example I've downloaded, I saw ...
0
votes
1answer
7 views

click handler not called in angular custom directive while using ng-repaet

I have created a directive in angular, the template of the directive uses ng-repeat and inside the template there is a button which is having a click handler assigned to it using ng-click. ...
7
votes
4answers
15k views

Why is my date input field in AngularJS throwing type error?

The error occurs when I display the populated, editable form to the user (not when a user enters in data and submits). The data is coming from MySQL over REST/JSON in the service shown below: HTML: ...
0
votes
0answers
33 views

Javascript promises referencing external variable

I'm trying to understand how promises works in js. I have the following protractor test: fieldConstraintsList.forEach(function(constrains){ // WARNING... or not?? var input = ...
0
votes
0answers
3 views

how to push grid from data using angularJs and Wijmo

here I created simple program for employee list using wijmo grid, here my problem is data not push to wijmo grid, Note: when using push in console error shows push undefined Thanks in ...
0
votes
2answers
8 views

Facebook api call

I am creating a website in PHP and i want to use login with Facebook in my website. I have created an app ID in Facebook developer. Facebook login is working but i want to retrieve email id which is ...
1
vote
2answers
29 views

AngularJS - Remove hash # using $locationProvider

I used $locationProvider to remove hashtag # from this url http://localhost/angular-phonecat/app/#/phones using the following code: phonecatApp.config(['$routeProvider', '$locationProvider', ...
0
votes
1answer
11 views

Ng-switch not working

I am using ng-switch as follows. Is this the proper usage of ng-switch? I don't want it to be in an array, because I am using it with a scope variable. In my HTML I have defined it like below. The ...
0
votes
2answers
174 views

Angular UI calendar integration - Events from resource not displaying

I am facing a very strange problem with Angular UI Calendar. I am trying to load some events from an api and put them into the calendar. Events are showed correctly when the page is first loaded. But ...
0
votes
2answers
8 views

how to use controller scope variable in template view in angularjs?

I have scope variable in angularjs controller, let's say :- $scope.newlangSuffix = 'en'; And i am trying to include a php file in template using this scope variable :- <div ...
0
votes
1answer
8 views

Ionic Socket setup not working

I am using MEAN.JS(NODEJS) for my server side and client for my web portal, where i have socket setup for realtime updates and its works perfectly, when i use the same controller in my ionic framework ...
0
votes
0answers
12 views

angular callback api add error message if fails

I am currently writing an Angular application that communicates with the flickr API. In order to utilise the response from flickr you need to define a jsonFlickrFeed callback function. Please see ...
145
votes
11answers
126k views

Reloading current state - refresh data

I'm using Angular UI Router and would like to reload the current state and refresh all data / re-run the controllers for the current state and it's parent. I have 3 state levels: ...
0
votes
0answers
9 views

How do I access a directive scope from a parent directive/controller?

I have a template that goes something like this: <parent-directive> <child-directive binding="varFromParent"></child-directive> <button ...
0
votes
1answer
21 views

Jquery Nav's anchor click not working with AngularJS

I have a Home.html screen and its corresponding Angularjs controller(HomeController.js). I am using JQuery Navigation sidebar on home screen. This navigation sidebar has a logout list item (li). I ...
0
votes
1answer
25 views

Vis.js network graph not updating with node changes

I have a function that clears any data that might be in the nodes or edges dataset, and goes on to repopulate them with new data. It's a hierarchical network, and levels are dynamically set AFTER all ...
0
votes
0answers
13 views

Object key is shown but not accessable?

It's mysterious: scope.$watchCollection('[scopes,auditors]', function (newValues, oldValues) { if(newValues !== oldValues) { if(newValues[0] !== '' && newValues[1].length) { ...
0
votes
1answer
18 views

Is it necessary to keep Node modules and Grunt file in same directory?

I am new to Grunt & I am working on project in which I need to have two angular apps but I want to keep node modules & bower components at common location so that, I don't have to do ...
0
votes
0answers
3 views

AEM/Angular: redirection to specific url on condition

I have a component which has an input filed as follows: <input type="submit" class="button blue" errorredirection="http:google.com/home" URL? data-url="${is:formatUrl(properties.buttonlink)}" ...
0
votes
0answers
6 views

AngularJS: textarea shows correct bind to JSON object

i have a problem with the visualization of my json bind. if in the html i put ,like in the code below, ng-repeat info in Items, it will bind the json but will show more useless elements (explication ...
0
votes
0answers
31 views

White space added by AngularJS after variable write in a for attribute

I'm fighting with a mystical Angular feature (or bug, I don't know). I have a label and an input written by different directives so, to bind them through the id/for attributes, I pass the id value as ...
0
votes
1answer
31 views

Angularjs Controller is not initialized

I am working on on angularjs app and we need to integrate with another angularjs app. On click of a button on first app modal window and its content should get it form app2. I am trying below ...
0
votes
0answers
21 views

Session Variable showing undefined

I have made the login page using ionic and it seems to work well. The $_SESSION variable also gets displayed after successfull login. Then in another php file, when I try to print the same session ...
0
votes
0answers
12 views

Why does the position of the scope.$apply() matter in this case

I've fixed a problem but I don't understand something that I would like to. In this SO question I asked why the dom isn't being updated on change and was suggested to me that I use scope.$apply() to ...
1
vote
1answer
14 views

How to redirect using ajax in angularjs

I want to redirect a user on specific page using ajax call in angularjs. I am able to redirect using below mentioned code but when i again want to redirect user to root page i am unable to do so as ...
-4
votes
0answers
33 views

I want to make side vertical menu as like www.bewakoof.com

How can I make vertical menu like this with submenu also for ecommerce websites? Demo link: Any demo links that I can download ??
6
votes
2answers
6k views

How to integrate AngularJs App inside Joomla

I am new to both Angular as well as Joomla that I am learning atm. What I am wondering is - is it possible to integrate Angular JS Application inside Joomla? From what I was reading about Joomla, I ...
0
votes
3answers
48 views

Angular not updating Ng-class when on-change is triggered

Got an odd problem with angular. I can get this to work with ng-click but I need to use onchange for other reasons. My code seems to be working fine for other buttons that can be pressed to trigger ...
0
votes
0answers
15 views

Make $http request, fill template with data and print it out

I'm trying to move from jQuery world to Angular. One of functionalities that I'm trying to port to Angular is printing using AJAX. Idea was to have template defined on client side, do request to ...
0
votes
0answers
13 views

Displaying Nested Object Keys and Values Within ng-repeat

I have the follow array: var myArray = [ {"cartItems": {"paramA1": 25, "paramA2": 35}}, {"cartShippingCost": {"paramB1": 4, "paramB2": 152, "paramB3": 536, "paramB4": 56}}, ...
0
votes
0answers
11 views

How to send XML raw data in AngularJs

This is my angular js code var soapMessage = '<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" ...
14
votes
4answers
322 views
+400

Http requests multi browser troubles

I am building in laravel 5.1 using angularJs. When the user clicks a button, I want to send a destroy request to delete it from the database and then when thats completed send a get request to get ...
0
votes
1answer
25 views

How to use ng-repeat in HTML page using AngularJS?

I need five independent fields based on the actual price and offer i need to find final price This is my sample html code addproduct.html <tbody ng-repeat="a in [1,2,3,4,5]"> ...
0
votes
1answer
15 views

Testing an Angular filter which uses Math outside of the browser

I've written a simple Angular filter which utilizes Math in its implementation. It works when I run the Jasmine spec in the browser, but not when I run it with Chutzpah, since it apparently doesn't ...
-1
votes
2answers
23 views

Download File Using Angular Js From Server Path

This is my code: onClick: function (data, index) { $http({ method: "GET", url: myurl, headers: { ...
0
votes
0answers
17 views

Angular web app not scrolling by mouse

Im working on Angular web app I found that the pages are not scrolling by moving the muse wheel but it scrolls by pressing arrow keys on keyboard. Also, I found that the bottom of the page will have ...
0
votes
3answers
35 views

I want to $broadcast and $on a function from one controller to another

I need help with the following code. I want to $broadcast, $on the following function from page.js(controller) to layout.js(controller). How should I do that? Thanks $scope.addToPage = ...
1
vote
2answers
2k views

AngularJS translation with pluralization using angular-translate

Hello I need to make translations with pluralization depending on a value, but can't find how to do that. for example I have variable peopleCount. peopleCount = 1 translations should be: english: ...
0
votes
4answers
26 views

Angular-filter by select value

I have an application where I want to filter a long list of products based on value from "select" containing product types. The filter works, but only after I select something. It initially sets the ...
0
votes
1answer
10 views

dynamically arrange md-dialog labels

My tab dialog looks like this: As you can see the tabs ("DESCRIPTION,MEANS,...) are not arranged evenly through the available space. I tried the flex directive but it won't work. My html is this ...
4
votes
2answers
21 views

How do you access the scope of a transclusion from it's directive

I have a directive that includes a transclusion with a form in it. I want to access the form from the directive but it is undefined. How do I access the scope of the transclude? I'm new to angular ...
1
vote
2answers
30 views

Trigger a button whenever a button is entered on a textarea

This is a textarea element <textarea id="textfield" paceholder="type anything here"></textarea> This is a button <button type="button" class="btn btn-danger" ...
2
votes
3answers
21 views

AngularJS ng-show Not Working with ng-click?

i don't understand what my ng-show not working when i click on my button with ng-click... thanks for help. <div ng-show="showMe == 1"> <h5>Ajouter</h5> <input ...
0
votes
0answers
10 views

AngularJs UI-mask not saving in database

I use Angular UI-mask. but when I'm saving some values are not saving in db. I need to generate a code like "xxxU99999". U value is a must. but U is not saving in db. why is that? <input ...
0
votes
0answers
7 views

why Image is getting cropped in IE alone?

<img id="DisplayImage" ng-src={{model.picSmall}} class="img-circle" style=" vertical-align:middle; padding-top:4px;"> In other browsers it is working fine but not in IE. I have included ...
1
vote
1answer
18 views

Show span on input focus

I have two text fields that bind with <span> to count total length of a characters. I have applied ng-if condition. But my scenario is that it should only show characters left text when the ...