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

grabbing data deep within a nested Json Object

I have data in the form of a nested JSON object. I want to grab some of the data to create a table, but it's deeply nested in arrays and objects. What's the best way to go about this for my table? If ...
0
votes
0answers
2 views

iOS build error from visual studio in angularjs

Here I am working on app which is developing in angularjs, at the time of iOS build. I am geating error. Severity Code Description Project File Line Suppression State Error Error: Remote build error ...
0
votes
3answers
13 views

AngularJS: Render HTML from scope variable with angular variables in the string

Essentially what I am doing is requesting a template from my server. A short example of this looks something like this: $scope.template = { 'title': 'default', 'description': 'default template', ...
0
votes
3answers
19 views

AngularJs: How to initialize the value for function Which is returning NaN?

I had a problem on my code in angularJs function which is return NaN instead of 0 during initialization. Sample Code is Here var app = angular.module('myApp', []); app.controller('personCtrl', ...
0
votes
0answers
12 views

Angular FIle upload Custom headers for upload all

i want to add custom headers to file before Upload all Both of method below not working $scope.uploadallman = function (qID) { alert(qID); uploader.headers = { QuestionID: qID }; //...
0
votes
0answers
5 views

Handle connection losses: reperform request or resend response

Using angular-sails the sailsjs backend is usually called this way: this.doSomethingWithItem = function(itemID, callback){ $sails.put('/item/doSomething', {itemID:itemID}). success(...
0
votes
0answers
6 views

UI Grid (AngularJs) TreeView Expand/Collapse row behaving unusual on Firefox browser

I am using AngularJs 1.3 and using Ui grid for table view. I found a issue where TreeView Expand/Collapse row behaving unusual on Firefox browser specifically (working fine on Chrome & IE) . Its a ...
0
votes
0answers
9 views

Angular-chartjs Data labels over bar chart

I am trying to create a bar chart using angular-chartjs and I need a data labels to be visible over each bar chart Example: http://jsfiddle.net/uh9vw0ao/ I have tried following code in js: $scope....
1
vote
2answers
39 views

angular disable apply button if none of the div is clicked

The requirement is simple. I have to enable the Apply button only if atleast one of the div is selected to green. Suggest some idea please.. Have given the running snippet below for reference. Thanks! ...
0
votes
0answers
15 views

How do i assign model values to render forms with values using ngformbuilder?

I am using form-builder from https://github.com/formio/ngFormBuilder. In that i don't want to use API references to store and get my forms data, instead i am getting JSON for form structure and values ...
0
votes
1answer
27 views

Unable to get username and password from angularjs to spring security

Developing app on Angular.js with Spring Security. I am not able to send the username and password from UI to spring security. Getting null pointer exception. After debugging found that, username is ...
0
votes
1answer
17 views

Using ng-model-options updateOn:blur with uib-datepicker popup

I have an input that allows a user to either type or select a date via the uib-datepicker calendar (https://angular-ui.github.io/bootstrap/). When the user clicks on the input the datepicker pops-up ...
0
votes
4answers
24 views

AngularJS, calculation addition (+) is not working

I tried to calculate $scope values through angular controller. For instance: the below code works in order to multiply values inside brackets. However, addition(+) is working like 400+200 = 400200. ...
1
vote
0answers
11 views

How to Redirect to My App, After user reached the destination using Google Map Apps

I am developing ionic application for android. From my application, I want to open google map app. I have implemented the navigation using the given link below, https://github.com/dpa99c/phonegap-...
0
votes
0answers
17 views

angularjs ng-pattern error message overwrite

I have a ng-pattern on my input field ecName which allows only alpha numeric characters. Ng-pattern works fine but the problem is I am getting two error messages one the default one and one that I ...
1
vote
1answer
30 views

Is it possible to perform a two way binding on a custom directive with ngModel?

My use case is completely different. When I strip off all the other factors, it boils down to this. Say I have the following input element <input type="text" [customDirective] [(ngModel)]="...
0
votes
0answers
11 views

Angular FileUpload custom headers

I have more than one fileupload control (angular file upload). I want to pass custom headers to each control I can pass generic headers to each control as code below. But what i want is sperate header ...
0
votes
0answers
14 views

Multi language edit from admin panel

I am doing a multi language (english and arabic) website in angularjs as front end and laravel as backend. Also has an admin panel in laravel. Multi language functionality works fine from the file ...
2
votes
0answers
21 views

Unknown provider: $stateProviderProvider in ui router testing

I'm trying to write test case for the Router in my angular app.I'm using "angular-ui-router": "0.3.1", Below is the setup and a sample test case : beforeEach(angular.mock.module("ui.router")); ...
2
votes
2answers
41 views

Use variable inside ng-repeat

I'm trying to find a way to insert my variable(s) into ng-repeat, see examples below for explaination. controller.js $scope.firstParams = $stateParams.firstId; template.html <span style="margin-...
2
votes
1answer
12 views

Angular 2 --aot causes AnimationEntryMetadata failure

My code works fine with ng build and ng build --prod howerver, when I add --aot to the command, it fails with the following error: Uncaught Error: Module build failed: Error: C:/Users/dremache/Code/...
3
votes
0answers
28 views

angular ui bootstrap tooltip hidden

The sidebar in my application is as follows <div class="wrapper"> <div class="sidebar-wrapper"> <ul class="sidebar-nav"> <li> <a uib-...
0
votes
1answer
22 views

find selected value of dropdown in every row of table

There are multiple rows in a table being created using ng-repeat. Each row has a dropdownlist. I want to get the selected value in a dropdown and attach that value with other corresponding values in ...
1
vote
1answer
22 views

Can index.html read needing .js file in angular.js 1.x version?

users have permission to go over menu. when A user need menu_1.js file but B user don't need menu_1.js file as well as haven't to go there I want to read needing js file in index.html in angular.js ...
2
votes
0answers
21 views

Writing angular2 test for a service with constructor parameters

How can I test a service which uses constructor parameters? I'm trying to learn about testing via the docs, but am having trouble. I have a service location-search.service.ts: import { Injectable } ...
0
votes
0answers
17 views

angular $update promises in services

When I do console.log(myService) I did not see any $update method. Then I saw in the code the previous guy did myService.$update(); What does this code do? I did not see any changes to the front ...
1
vote
2answers
30 views

AngularJS : How to sum similar variables from multilpe arrays

Please see what I need to do at the end of this question. I have the following relationship between Category and Products (1-n). This is the html table with the inventory <table> <thead&...
-1
votes
0answers
22 views

Image Background aren't rendering after class change

I have an Ionic App made for Android. On my app, there's a "card" that the user customize through side-menu options. These options change some classes on the container, like alter the background ...
0
votes
0answers
18 views

Display a Second List of Options based on a Selection Made in Another List

I am attempting to create a second drop down list that only displays options specific to the selection in my first list. The website is on a company portal and is for internal use only. The list ...
-4
votes
1answer
18 views

show progress bar on angular directive file upload

I need to show the progress bar by using angular directive on file upload. app.directive('uploadPanel', function () { return { restrict: 'E', scope: { action: '@' ...
1
vote
1answer
19 views

Angular window injecting

Is it possible prevent angular instance inject into global (window) scope when being required and bundled with webpack for example or any other module bundler? I have found that current main ...
-2
votes
0answers
11 views

AngularJS save data remote api and watch for changes

I am trying to make an app that will make a get request to a remote API or a server that returns JSON and save the data on the device. That much I know how to do, however I would like to make this app ...
-2
votes
0answers
34 views

Why should I use angular JS [on hold]

I am starting to learn web development and I am keep on hearing buzz in my circle that you should know and learn angular JS when I ask why they say its easy to manipulate UI without much fuzz, I am ...
0
votes
0answers
10 views

Angular - Ui-router - How to make both parent and child controller load

Hi I am hoping someone could help me out. I have these states and my intention is that I want the rootController to be initialised to resolve user then for it load the child controller in this case "...
0
votes
2answers
12 views

How to create a directive with dynamic value in AngularJS

I have a tiny directive which simulates 'keydown' event on element click. It works completely fine but I would like like to create a more generic one by having the possibility to pass the 'keydown' ...
0
votes
2answers
35 views

Javascript in angular ng-view

This might be a bit to read, but I think it would be fairly confusing without some context. Right now, I have a site that has angular keeping the same header on all my pages, simply including an ng-...
0
votes
1answer
18 views

angularJS, after injecting service, it still reports unknow provider

I have injected the new service into my controller, but it always says unknown provider my code: export service: class AlertService { constructor($rootScope,$injector) { this.rootScope =...
0
votes
0answers
11 views

fineuploader invalid xhr request (clear cache)

seem to have run into a fairly intermittent issue with fineuploader that is being used in an Angular application. We seem to be getting a server error (500), yet we are getting nothing logged in our ...
0
votes
1answer
11 views

Using Google Maps API on Single page application - Error using multiple times the api

I have an angular WebApp in which I use the google Map API. It is loaded in the html view. On click the states changes to another page and loads the map. It is working well for the first time. When I ...
0
votes
0answers
10 views

ag-grid - how ng-model works

This question came to my mind because I am stuck in a situation where I need to have a column which is nothing but a checkbox(this check box is not for row selection). From backend I get values true/...
-1
votes
2answers
43 views

AngularJS HelloWorld nothing show when run app

I am started learning angularJs and on first setup, app wont work. What is wrong in my code? I'am try everything and I don't have any idea what to do. When run in browser it show only html, but ...
1
vote
1answer
14 views

Angularjs onkeypress update value from input

<td>{{count}}</td> <td><div class="col-xs-12"><input type="text" ng-keypress="count ='10'" ng-init="count=0"></div></td> Its working but I want to put the ...
0
votes
4answers
16 views

Can't assign object returned by service to $scope

I'm trying to assign data returned by service to $scope property. Somehow it doesn't work properly. The service method correctly get data via $http.get but then it is not assigned to $scope in the ...
0
votes
0answers
12 views

Accessing user message list with Gmail API

So i am trying to make this get request to the GMAIL message endpoint: https://www.googleapis.com/gmail/v1/users/test%40email.com/messages?q=from%3Asender%40test.com+is%3Aread&key=MYKEYHERE But ...
2
votes
1answer
20 views

How to create a Docker container of an AngularJS app?

I have an AngularJS app that has this structure: app/ ----- controllers/ ---------- mainController.js ---------- otherController.js ----- directives/ ---------- mainDirective.js ---------- ...
0
votes
0answers
8 views

Angularjs Openlayer draw polyline

I hope to find a quick answer for my problem. I am using openlayer directive (https://github.com/tombatossals/angular-openlayers-directive) to draw a map in my App. I would like to add polyline to ...
0
votes
1answer
17 views

how to maintain session for login form

app.controller('loginController',function($scope,$http, $window){ // console.log(1); $scope.adminLogin = function() { alert("aaaaaa"); var username=$scope.username; var ...
0
votes
1answer
14 views

angular ui bootstrap modal opened in state, how to close in controller?

Hi there I am trying to create stateful modals, using ui-router and ui-bootstrap, I have the modal opening successfully like this, .state('static.login', { url: '^/login', onEnter: ...
0
votes
1answer
27 views

What means => used in this way in Javascript syntax? [duplicate]

I searched something on SO and run into this, which is a way to retrive a file from your local computer and use it in browser, with AngularJS. this.http.get(<path_to_your_json_file>) .success(...
0
votes
0answers
12 views

How to load a template dynamically and include it in a ng-include directive?

I'm developing a admin dashboard which uses several templates for different purposes(for example adding users, deleting users). So I want to load a template dynamically, for example when I click add ...