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)

0
votes
0answers
5 views

Strange behavior of an angular decorator directive which is called twice without a reason

I have a decorator directive($scope.false) attached to a form, that has a strange behavior in my app, it's call twice. First problem is that my directive is called until the piece of DOM, where it's ...
2
votes
0answers
7 views

Angular 2 dynamically change base url in post requests

I have angular services in Angular2/TypeScript application which are not aware of http services location - what is obviously required. For testing purposes, I need to run my TypeScript application ...
0
votes
0answers
10 views

Image to data-url angular js

I am creating a chrome packaged app and it doesn't allow external images. Only way is to make ajax and convert it to data-uri. They even have a library for it. ...
0
votes
2answers
16 views

Angular $http called from service, 'then' is undefined

I have seen this question many times but I can't figure out why one of my controller functions (controller 1) works fine and one (controller 2) doesn't. Controller 1: ...
0
votes
1answer
12 views

AngularJS - set Nav Bar

I'm doing a single page application using AngularJS. On my index.html I'm using an ng-view direction to show the header section. The navigation section is defined as a ul element with a bunch of li ...
0
votes
0answers
4 views

Cannot find react in render function — ngReact

I am trying to build up an application with angular and ngReact . However when I try to compile this in typescript . It gives me error . /// <reference path="../../../_all.ts"/> module ...
0
votes
1answer
15 views

$http and $stateParams in resolve of $stateProvider, Unknown provider error

The goal here is to send an http request with the same parameter of the state parameter. This will then display the food types associated with the cuisine type that has been clicked. Is this even ...
1
vote
0answers
11 views

How do I load all my JS files via index.js file for my RequireJS/AngularJS POC?

I am new to Node.js, NPM, JSPM, and Require.js and need help loading my Node package via the index.js file for a working RequireJS/AngularJS Proof of Concept (POC).   The RequireJS/AngularJS POC uses ...
0
votes
0answers
8 views

Dynamically creating directive template

I am trying to create template dynamically. When I inject the hard coded value through directives attribute it works fine. But when I assign it using angular variable it does not seem to work. Below ...
0
votes
1answer
7 views

error while running gulp serve when changes are made in .js files

i am changing few UI files on the fly, but most of the time my gulp serve crashes with below error. after undoing those changes also but it stills fails . as a work around i need to delete the bower ...
1
vote
1answer
11 views

Why my replacer function in JSON.stringify(value, replacer) doesn't receive keys in Angular application?

Trying to implement JSON.stringify as explained here: json stringify : How to exclude certain fields from the json string and exclude some fields from serialization but it doesn't work. For example ...
1
vote
2answers
8 views

Angular2: How to dynamically set data binding variables on input elements?

In a component template in angular2, it is possible to add a data-binding variable to an input element: <input name="title" #title> Also, we can dynamically set the property value like this: ...
0
votes
2answers
20 views

how do i link a checkbox to a website

I have the following code: <input type="checkbox" id="{{ day.name }}-{{ $index }}" ng-model="slot.booked" ng-disabled="slot.booked"> <label for="{{ day.name }}-{{ $index }}">{{ ...
1
vote
2answers
31 views

Angular : Directive code not rendering the template

I simply cloned the angular seed project and added a directive as shown below: .directive('dataGrid',function(){ return{ restrict: 'E', template : ...
0
votes
0answers
18 views

Angular JS route, http and json strange works

I am a newbie in Angular JS. I am replacing a webapp from jquery and PHP to Angular JS + PHP (PHP is necessary to get data from DB and pass it on JSON). The PHP module works, I have tested. My ...
0
votes
1answer
26 views

Angular library no making HTTP calls

i have build angular library using this Generator all the functions of the library works fine when i call them from the app but, the functions that make HTTP calls are not working. Is there any reason ...
0
votes
1answer
13 views

Angular setting up ng-click on row but checkbox not working as desired

I have defined a simple row that has a name and a checkbox. I have the name and the checkbox bound to angular data, but I am now attempting to put in a row click that will reverse the value of the ...
0
votes
0answers
21 views

Getting browser's currently centered element

Is it possible using JavaScript to detect which element is currently on the center of the browser window? I would like to create an updating $location.hash on angularjs if the user will scroll through ...
0
votes
3answers
14 views

could not able to solve the error

Am trying to post a data to the server but when am run my code it shows me a error like this... TypeError: Cannot create property 'method' on string ...
1
vote
2answers
15 views

AngularJs & Cannot read property of 'SetNavBanner' of undefined

I'm working on a simple single page application using angular. I have one module and several different controllers. Within my module I have a factory service that sets on css on the page. The factory ...
0
votes
0answers
4 views

PNG files not loading on Android

I am running an ng-repeat in AngularJS on an md-grid-list group, and it loads fine on my desktop (Chrome, OSX) but the files do not load on my Android Chrome. I thought the files might be too big so I ...
0
votes
0answers
8 views

Ag-grid not binding data in MVC 4 application

I've noticed that in a mvc 4 application using aggrid I'm unable to bind data to grid. The ag-grid is not displaying data. I get the error "Error: [$resource:badcfg] Error in resource configuration ...
0
votes
1answer
11 views

chartist graph color change

I am using a chartist graph and the colours are defined in a framework level, but i need to change it in for a specific graph, so i cannot change in the frame work level, tried to create a .less file ...
0
votes
2answers
29 views

GET request but not getting results in the view

I am working on a web app and I had the chance to render a table on my view from a database. After that I performed an ID request so I could click on a result on my table and render a view to see that ...
0
votes
2answers
18 views

How to exclude an HTML element form Ionic CSS

I have a particular rounded button, with his CSS, but when I use it, my CSS blow up, because there are Ionic CSS "standard" rules. My .button class is ruinded by the .button CSS class of Ionic. I ...
0
votes
0answers
10 views

Https requests with Authorization not working via Safari

Context XHR requests with Authorization header over HTTPS (both together) don't reach the server, using Safari (IOS and MacOS). But it works with IE, Chrome and Firefox. I use a valid certificate ...
0
votes
1answer
17 views

Minify angularjs script results in error

Trying to minify my angularjs code but somehow it gives an error when I have it minified. When not minifying it works like intended and without an error. Error: $injector:unpr Unknown Provider ...
0
votes
0answers
18 views

Handling data streaming using ng-repeat

I got the following data which comes out of a EventSource interface. I'm using this data to build a simple table (i have specified the table structure below) using angular ng-repeat. The issue i have ...
0
votes
0answers
15 views

In AngularJS, is there any side effect if you use module.service() when module.factory() should be used?

I saw some code in the existing code base: angular.module("myApp", []) .service("myService", function() { return { getData: function() { } // etc ... }; }); I ...
0
votes
1answer
10 views

AngularJS trouble with UI-Router and linking id from one controller to another

I originally had my app set up with ng-route and I'm now switching over to ui-route. I used to use "when('/json/galleries/:projectId')" to generate a gallery when a thumbnail was clicked. Now with ...
0
votes
0answers
20 views

Html encoding of Angular view with # character

I am sending a URL of html template in email, this template is rendered using Angular, in URL I have # sign that is decoded as %23 (encoded special character) which makes the URL invalid. Example of ...
0
votes
0answers
18 views

Angular JS Auto Incremented Counter for ID field

i am new to angular js How can i achieve auto incremented Counter for ID in angular js?
1
vote
2answers
38 views

Unable to get value from $scope

Contains application module app.js var appProfileDetails = angular.module('profileDetailsApp', [ 'ngMaterial','ngAria','ngAnimate','ngRoute']); It has the ...
1
vote
1answer
14 views

update row in angular table when td has multiple items

I have a table that I'm displaying using angular.js. So, my one spot in the table holds two pieces of information. It has data and color. I found stuff for editing the data, but any suggestions on ...
0
votes
0answers
19 views

ng-show=false and dynamic link function in directive

What happens to an element that it's ng-show value is calculated to be false, but is connected to a directive in which the link function calls something like element.show()? Will the element be ...
1
vote
2answers
44 views

ng-repeat showing empty table rows

I getting empty <td> tags when I am using ng-repeat. The number of <td>s is equal to the number of records returned from the service/api. I have checked in ng-inspector scope has proper ...
-2
votes
1answer
30 views

Error with $http, passing parameter transformRequest

I am trying to post a data like (email,role,home) to my server using angularjs,but when I run the program it shows me a error like this which is following as.... ReferenceError: ...
0
votes
0answers
15 views

Angularjs (ng-click , ng-change) directive not working with icheck plugin

I know this has already been asked but am not being able to solve the issue when using icheck plugin. I have some checkbox as follows: <div class="form-group"> <label> <input ...
0
votes
2answers
29 views

Trouble at comparing arrays

I have 'shared.checkedFacility' scope array in controller which read something like: [14, 49, 93, 122, 44, 40, 88, 83, 65, 9, 38, 28, 8, 53, 125, 155] and i am dynamically generating two ...
0
votes
1answer
21 views

AngularJs Directive don't update itself for source element's attribute updates

tried almost everything but not succeed. I wanted to take an action only if I click on an element whose class name is "ion-android-favorite-outline". My source element is like below <i ...
0
votes
1answer
33 views

not able to access the nested Json data

So my task is to display a certain list of markets and my aim is to choose one market name in the option so I can view its details. Also, incase that market has any other submarkets, I can view them ...
0
votes
1answer
14 views

Mongo error when loading on mobile

I am getting the following error on mongo, when loading my test MEAN app on my mobile phone. I have no idea which module is that, since I am not loading it myself. The wierd part is that, on desktop ...
0
votes
1answer
11 views

URL Rewriting affects the data from API

I need a help on URL Rewrite for my HTML5 application, Which is hosted on IIS. In my app, I have page for list the schools. The school data(JSON) is from C# ASP.net API. I'm getting the data by using ...
-1
votes
1answer
19 views

Passing a service dependency injection for controller testing

AllData.js contains the following code var module = angular.module("myApp", []); module.service("StoreService", function () { this.AddCategory = function (newCategoryToAdd) ...
0
votes
0answers
11 views

overriding create method in loopback.io

I'm new to loopback.io but already know some of NodeJS and AngularJS. I created a simple app based on the Todo list example https://www.codetutorial.io/loopback-and-angularjs-first-tutorial/ The ...
0
votes
2answers
22 views

Inserting vertical bars in ng-repeat in angular-js

I was trying to fetch values from an array variable using ng-repeat in unordered lists. Now the values are coming nicely and everything is working but i have put vertical bars after each to show ...
0
votes
1answer
7 views

Delete action in AngularJS app wired onto Ruby on Rails

I'm working on a "To-Do List" application, built on AngularJS sitting on Ruby on Rails. Now I'm trying to setup a delete button, "X" to remove 'to-do' items that will persist to the db. I haven't ...
-5
votes
1answer
28 views

Unable to get $scope property value in angular

1. app.js var appProfileDetails = angular.module('profileDetailsApp', ['ngMaterial','ngAria','ngAnimate','ngRoute' ]); 2. contactController.js appProfileDetails.controller('contactController', ...
2
votes
1answer
18 views

Angularjs Flickr API SyntaxError: Unexpected token when using nojsoncallback=1

I have an angularjs app to call a flickr api. I want the data in RAW json format with no function wrapper and as per the docs, applying &nojsoncallback=1 . However I'm getting the following ...
0
votes
0answers
17 views

AngularJS $animateCss on both page load and view change

I use this controller to grab blog posts: appCtrl.controller('NewsCtrl', ['$scope', '$http', function ($scope, $http) { var posts = []; ...