AngularJS (a.k.a. AngularJS 1) 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 applications are also frequently known as ...

learn more… | top users | synonyms (2)

0
votes
0answers
3 views

AngularJS get html element

I'm using angularjs, and I want to obtain the html element by simply mark an ng-tag. <div ng-xxxx="myDiv"></div> console.log($scope.myDiv); //<div ng-xxxx="myDiv"></div> Can ...
0
votes
0answers
4 views

design system with server controlled UI display in Angular(Front-end)+ Java(Back-end)

I am building a single page web system by using Angular as front end and Java as backend. This system has different roles and user must be assigned to one Role. Different role can do different ...
0
votes
1answer
7 views

Basic Angular - How to load json http response into another json object

I am using fixer.io and money.js to convert currency. money.js is used to convert currency and fixer.io is an api that gets the latest exchange rates. I need to load the latest exchange rates into the ...
0
votes
1answer
18 views

What is the difference between src and ng-src in AngularJS? [duplicate]

Recently I came across this: <img ng-src="data:image/png;base64,{{image}}"> What is the difference with: <img src="data:image/png;base64,{{image}}"> I get the data through a http ...
0
votes
0answers
7 views

How to build a custom Firebase registration confirmation / validation / email reset

This is driving me completely bonkers. I cant use the firebase email system to notify the user about account validation email, email reset or email change becasue I cant change the language or ...
0
votes
0answers
10 views

ReferenceError: google is not defined on reload

I am trying to use the googleplace autocomplete api and ng-map. The problem I run into is after I try to load the map and places with a directive. I am appending a script tag to the the body tag ...
0
votes
0answers
14 views

angular don't update ngModel when ngOptions change

How can I prevent angular from updating the ngModel when the ngOptions array changes? Angular seems to set ngModel to null when the ngOptions array changed. .controller('myController', function($...
0
votes
1answer
13 views

AngularJS 1.5 Controllers in Separate Files

I have a hard time understanding this. I'm attempting to put controllers in separate files so that they only deal with 1 thing, ideally, a partial view My folder structure is like this... My app.js ...
0
votes
0answers
7 views

embedded stylesheet with angular-defined values

I am repurposing the HTML/CSS for this survey widget. The CSS is built for a fixed number (5) of options (radio buttons), but I can dynamicize it using ng-repeat so that it can hold anywhere from 3 ...
-2
votes
3answers
16 views

How to concatenate a dynamic variable on to a object path

I have an object of objects using Angular, and categoryOne's content is automatically loaded on my page. If a button is clicked, I want to call a function in my controller--that would be the ...
0
votes
0answers
9 views

Handle file upload-download with $http.post() AngularJS

Shortly, I am uploading CSV with $http.post() to remote API which needs to respond with another file. Basically I want to implement functionality which will allows to user to upload file and after ...
1
vote
0answers
11 views

Stacked bar chart results in misaligned bars

I'm attempting to create a bar chart that stacks the bars for three respective data series. I'm using Chart.js with angular charts. I have the stacked property set accordingly with: stacked: true, yet ...
0
votes
2answers
31 views

Can't seem to get this GET method to work properly in AngularJS

So I am building a portfolio page which uses a json file to store the project information. For some reason, I can't get the anything to show on ng-view, any ideas would be helpful! Link to the Plunkr ...
0
votes
1answer
25 views

First Array Item Gets Overwritten Be Second Pushed Into Array, And Increment Duplicate Properties

I have a function in which I'm scheduling reminders on mobile. I'm building out an array of repeating items and incrementing two properties of each object submitted to the array, everything else in ...
0
votes
1answer
31 views

AngularJS: How to determine is a model disabled or not

I have a form and some fields get disabled with various conditions. Is there a way to determine is a model disabled or not without running the same ng-disabled condition in the controller?
1
vote
1answer
14 views

Is it possible to pass data from routeProvider resolve to a factory/service?

In my route provider I have a resolve object that returns some data from a JSON file. I can pass it without any problems to my controller but there is an error (unknown provider) when I try to pass it ...
0
votes
1answer
10 views

angularjs setter and getter in service not working - interfering with ng-click and routeProvider?

I have a form in view1, with multiple input fields. Button submit successfully posts data (stores in db), however the getter in the service to pass the value of ng-model campaign.jobtitle to job does ...
0
votes
0answers
25 views

Angular and Clicking on List Items

I'm trying to understand why when I click on this list item it doesn't want to go to its corresponding page. Instead it reverts back to the main page. <li ng-click="goToPage('#/show-schedule')">...
0
votes
4answers
29 views

how to call http call inside the for loop after success of before http call?

I want to call the api after completing the first is success.But in my code it call the api before the first one was completed for(var w=0;w<Ids.length;w++){ $scope.msgObject = { ...
0
votes
1answer
15 views

Event in Angular Controller Only Fires Once

I'm trying to implement an Angular version of an autocomplete textbox. I found some working examples, but none seem to exhibit the behavior I'm getting. The autocomplete functionality itself works ...
0
votes
1answer
13 views

difference between a named function in angular controller signature vs a non-named function

I've seen controllers written in two ways: 1) myModule.controller('myController', function myController($scope) { ... }); 2) myModule.controller('myController', function($scope) { ... }); in ...
0
votes
1answer
8 views

Change browser title on route change in angular 1.5 component router

I am using angular 1.5 component router. I need to be able to change the title shown on the browser tab whenever there is a route change. I have gone through the component router docs and googled it ...
0
votes
0answers
7 views

Protractor expected returns with brackets instead of quotes

I am testing a webpage and need to use this repeater and model to make sure that the correct text was entered. I tried doing this to get the expected text to match what i want: expect(element.all(...
0
votes
0answers
20 views

How do you trigger the '&' isolate scope from a child components controller?

Question: From the child components controller how would I trigger an event as the refresh: '&' binding view e.g. ng-click="$ctrl.refresh()'? Typically I would have an ng-click liek so: Module: ...
-2
votes
0answers
8 views

AngularJs ui-grid custom aggregation

I am very new to angular js UI Grid. For my application I need to Achieve custom aggregation for "Footer" and "Grouping" totals.. Aggregation is different then provided aggregations in uigrid api. Can ...
0
votes
0answers
4 views

Reports Error in Mifos X Release Version: 16.11.01.RELEASE

I recently installed the newest version of Mifos X (Release Version: 16.11.01.RELEASE) on my local windows 10 computer. Everything works perfectly excerpt for the reports. The reports screen does not ...
1
vote
2answers
28 views

Splice or Remove list of elements from JSON Array

I am having a JSON Array Output from REST API like this , I am displaying this items on the HTML using ng-repeat. var searchresponse = [{ "items": [{ "employeeId": "ABC", "type": ...
0
votes
1answer
15 views

Disable/re-enable button within isolate scope directive in Angular

I need to enable/disable a button after click with Angular. When a user clicks "Submit form", it makes an http request. If an error occurs (inside the catch), I want to re-enable the directive button ...
0
votes
0answers
20 views

Image is not displaying Django + Angular

Earlier I was facing problem when I refresh the page. With this Solution I manage to solve the problem. But after applying this to url pattern, image is not loading properly. If I try to open the ...
0
votes
1answer
9 views

how to remove the “clear sort” state in angular-ui-grid column header?

I see info on adding "disable sort" but not how to remove the default behavior where the 3rd click disables sort and is "neutral" on sortable headers. In reality, having a disable sort state feels ...
0
votes
0answers
17 views

Add a custom error message next to a control which doesn't have an id. Angularjs

The object I receive from my API is an array or arrays. I am trying to apply a validation on a control. View : <div ng-repeat="item in ClientGroupsInfo[sharedIndex] track by $index"> ...
0
votes
0answers
16 views

regular expressions in Angular interpolation

I can do this in an Angular 1.5 interpolation, to get the last thing after the last _: {{foo.bar.split(_).pop()}} This doesn't seem to work with a regular expression; why? {{foo.bar.split(/_/).pop()...
0
votes
2answers
18 views

Destructor for Angular 1.5 Service

I have an Angular 1.5 service that wraps a SignalR proxy. When the Angular app is destroyed, I'd like to explicitly leave all SignalR groups that the user has registered for rather than waiting on the ...
0
votes
1answer
14 views

How to pass a real plus character in string-values of JSON in the url hash fragment

I have a JS (Angular) app which loads parameters from the url fragment (after the # hash sign) - and the parameter contains json objects - like ...#filters={"Course":["ST_12.+13.12.2016 [Basel]"]} ...
-3
votes
1answer
20 views

How web project directory structure should look? (Using MongoDB + Node.js + Angular2)

I'm all new to Web programming and I cant understand how the directory tree of my project should look. /projectName /Img /Html This is my dir tree so far and I dont think it need to look like that....
1
vote
1answer
12 views

Error: $injector:unpr Unknown Provider (app.js seems to be defined correctly)

I am dealing with that unknown provider issue, but have checked the other threads and applied those solutions to no avail. I want to get a service called 'MockSvc' to be injected into a controller ...
1
vote
6answers
42 views

Ng-repeat one element multiple times based on its properties

I have an object like this: $scope.cars=[ {'element':'Ford','count':3}, {'element':'Honda','count':2}, {'element':'Ferrari','count':1}, {'element':'Delorean','count':6} ]; What I ...
0
votes
0answers
13 views

Assign width value to an html element using ng-style

The fiddle below has a table header,having three fields. The last two td's have (say,20px width each) table headings.. tHE FIRST td is supposed to be blank and i intend to calculate it's width as:- ...
0
votes
0answers
19 views

How to access objects returned by a service from within controllers

I have a service that returned array of objects to a controller , the console showing the below response : Array[0] 0 : Object first_name : "Emi" id : "255860959988416847" last_name : "Hauritz Seino"...
1
vote
1answer
30 views

Deep $watch not triggering handler when changed property starts with $

I can't get this AngularJs $watch to work. I'm changing a property on a deep-watched property, yet it doesn't trigger the $watch handler because the changed property starts with a dollar sign. Here's ...
0
votes
0answers
5 views

Angular ui router onEnterChild?

I have abstract route "registration" that has a lot of child routes. I want to call a method when some of the child routes is called. At the moment i am detecting this in the stateChangeStart event $...
0
votes
0answers
23 views

Limit object properties in scope

I'm receiving data through a service, but want to reduce the amount of data in my scpoe variables and am wondering the best practice for doing this. Data received: $scope.mainObject { id:...
0
votes
1answer
11 views

Install Definitely Typed Angular from Visual Studio NuGet, getting repeated errors “Duplicate Identifiers”

I have installed the angularjs, and Definitely Typed Angular from the NuGet packages on Visual Studio. This all installed fine, with no errors. However whenever I start to try to write to a TS file, I ...
2
votes
0answers
10 views

Angular 2: “Unknown Provider: $$angularInjectorProvider” when unit testing with an `UpgradeModule` downgraded service

Our app currently has some 4,500+ existing Angular 1 tests. We're now incorporating Angular 2 using UpgradeModule to downgrade an Angular 2 service, which is used from our app's run() method. This ...
0
votes
0answers
8 views

Accessing Localhost from a sideloaded Windows application

I have developed a windows application of which one of the functionalities depends on an Api hosted locally on the same system. When this app is tried on the system it was developed it works fine and ...
0
votes
0answers
12 views

Failed to load resource: net::ERR_FILE_NOT_FOUND in ionic

I am very new to ionic and angularjs. When I run my application in browser it works fine but after build for android and run it in devices i get blank page. And when i check console using I get the ...
0
votes
1answer
37 views

Displaying Results of Add/ Delete operation dynamically in HTML using ANGULAR JS and Spring MVC

I am having an employee form where the user can add the employee details,search for employee details and delete those details . I have written separate functions for add,search and delete operations ...
0
votes
0answers
14 views

Angular Ng1/Ng2 hybrid app throwing 'No provider for $scope' exception

I'm trying to build an hybrid Ng1/Ng2 app with NgUpgrade as an intermediate step in a migration towards Angular 2. The bootstrap seems to work: platformBrowserDynamic().bootstrapModule(AppModule)....
1
vote
0answers
18 views

Cannot read property '$$phase' of null - AngularJS

for some reason I get this error while splicing an object from an array that lives in the $scope: Cannot read property '$$phase' of null here's the code: $scope.deleteThis = function (index) { ...
0
votes
1answer
20 views

Angular 1.5 component issue - how to 'reset' a function coming from its controller when changing to another state?

I have an Angular 1.5 component with a controller (which uses controllerAs syntax), where I wrote a function adding additional css class to the component element if a certain html element exists in ...