Use for questions about AngularJS (a.k.a. AngularJS 1), the open-source JavaScript framework. Do NOT use this tag for Angular 2 or later versions, which currently should use the "angular2" tag.

learn more… | top users | synonyms (2) | angularjs jobs

0
votes
0answers
4 views

How to mock AngularJS promises using Jasmine / Karma?

This is my controller: angular.module("AuthenticationApp", ["BaseApp"]) .controller("AuthCtrl", ["$http", "BaseService", function($http, BaseService) { var self = this; ...
0
votes
1answer
11 views

<button> aligned with <fieldset>

Good day, I am trying to align <button> relative to <fieldset>, but up to this moment I only managed to align it with margin:0 auto; May you say if it is possible to put <button> ...
0
votes
1answer
8 views

Error: [ng:areq] Argument 'demoCtrl' is not a function, got undefined

var app1 = angular.module('sample', []); app1.controller('DemoCtrl', function($scope, $http, $interval) { var codes; $scope.items = []; $interval((function() { if (codes && ...
0
votes
0answers
7 views

angularjs tabs directive, displaying only first item instead of 10

I'm using following directive in order to utilize tabs section inside view app.js (function () { 'use strict'; angular.module('app', []); var directives = angular.module('app'); ...
1
vote
2answers
26 views

Javascript Promise undefined

I am new to Javascript and AngularJS, I am trying to figure this out. I made an angular service that execute DB queries and return promise. executeStatement = function(db, sql, values, ...
0
votes
0answers
6 views

POST 400 (Bad Request)

I am building my app and Update, Get and Delete work I am heaving trouble with Create, have tried a lot of things nothing works it works only on my one controller Agent, I have no idea what is the ...
0
votes
0answers
8 views

Is there any way to git rid of circular dependency in from angular dependency injection

How can I get rid from circular dependency injection error in angular 1.x? I know I can use injector to inject some service. But is it the only way around? Also is it ok to use this in application?
1
vote
0answers
6 views

Failed to instantiate module ngMaterial in project generated with jhipster

I am trying to add angular material to a project that i have generated using jhipster. I have added the dependencies for angular-aria, angular-animate and angular-material in index.html like this: &...
0
votes
0answers
4 views

Watermark Image in Ionic 2

i want to create an app to watermark the selected image. i try it using two 3rd Party packages. https://www.npmjs.com/package/watermarkjs https://www.npmjs.com/package/image-watermark both get me ...
-1
votes
0answers
21 views

Angularjs track by $index

I first got the ng-repeat Error “Duplicates in a repeater are not allowed.” error.I solved this with track by $ index.But I can not view the data on the page.Where am I making the mistake.I am ...
-2
votes
0answers
12 views

I'm trying to install angularjs on ubuntu, I must update minimatch but I got this error [duplicate]

I got this error when I tried to install the last version of minimatch using this command "npm install -g [email protected]"
1
vote
0answers
17 views

need to verify angular4 from angular2 in visual studio 2017

I have upgraded my source from Angularjs2 to Angularjs4. I am using Visual studio 2017 and ASP.NET MVC Core. I want to verify now either i am using the updated version (4) or previous one (2). here ...
1
vote
1answer
12 views

Soundcloud API over HTTPS

I'm trying to create custom soundcloud players with Plangular: a directive that use SC API and Angular JS. I tryed with some basic examples, loading the module with my client ID var player = angular....
0
votes
0answers
13 views

failed to instantiate angular-filepicker

I'm trying to use Angular-Filepicker on my app and I'm getting an error that filepickerProvider is not defined and I'm lost on where it's being dropped. I've checked that it's called in the module, I'...
0
votes
1answer
20 views

referencing angularjs property value inside js

Inside view I have following snippet where I'm iterating trough collection of data <div class="tab-content" ng-controller="homeController as vm"> <div class="tab-pane fade in active" ...
0
votes
1answer
14 views

SyntaxError: Unexpected token angular-cli

node version in use: v5.7.0. Trying install/upgrade angular-cli to latest version to support: angular-4 Upgraded npm to latest version using powershell as recommended by node team. npm version in ...
-2
votes
2answers
24 views

How to ng-repeat childs in 'ng-repeated divs'?

I want to create a list of items with subitems. The items and the subitems are listed in arrays like this: items=[firstItem,secondItem,thirdItem,...] and subitems=[{"name":"firstSubitem1","name":"...
-4
votes
0answers
31 views

Consequences of skipping from Angular 2 to Angular 4?

I've read that Angular 3 was skipped so the version number correlates with the number of upgrades to "match the Angular 4 router". Is this just for sake of convenience? What would be the consequences ...
1
vote
1answer
28 views

$event.stopPropagation() runs but parent event still executes

So I have a button that is inside an <a> tag that links to another location. When I click the button I want it so that it does not trigger the link in the parent tag. I have tried using $event....
0
votes
1answer
16 views

Angular JS- 1st Dropdown linked to 2nd linked to 3rd. Now I need selected data from 3rd drop down to display in another textarea

I have posted the script and the controller. From one drop down I goto the second one and from the second to third. for example amazon's website where you got categories then to electronics and then ...
1
vote
0answers
8 views

How to Test Facebook Connect Locally with Monaca

I am currently working into a project with AngularJS and OnsenUi in Monaca Localkit and i need your help with the integration of facebook login to the application. I followed the instructions here ...
-1
votes
0answers
32 views

$http.post method not allowed

I am very new to AngularJS What I am trying to do is to send submitted form data to Flask back-end, although keep receiving a method not allowed error. I have created a jsfiddle with my angular post ...
0
votes
0answers
11 views

ionic, $state.go does not change the view

in my ionic app after successful registration an $ionicPopup.alert shown and by pressing OK I want to navigate to another state. the url changes but the view remains on the registration form. this is ...
-2
votes
2answers
17 views

Ionic 2 - How define a function in ionic 2

I cannot define a simple function in Ionic 2. This is my code: import { Component } from '@angular/core'; import { NavController, NavParams } from 'ionic-angular'; @Component({ selector: 'page-...
0
votes
1answer
18 views

Angular Js Contructor function for Service or factory

I am looking for any constructor type of function in Angular. I have created a service but it is giving error. Please help to accomplish the task. My Error code: var app = angular.module("app1", []...
0
votes
0answers
20 views

how I can get selected value of radio button and combo box, AngularJS

I'm using firebase to save my questions details such as: Qid, Qname, and Qoptions. I retrieve questions in HTML form As this code using ng-repeat <div ng-repeat="q in qRadio track ...
0
votes
1answer
24 views

watch is not working inside directive link in angularJs

Save Button shoud get disable when their is an error message <user-textbox name="txtbox" error-Message="errormsg"></user-textbox> <button id="modalSaveButton" type="button" ng-click="...
-2
votes
0answers
13 views

Laravel JWT or Oauth - how do I set up a client side without angular js?

I found some articles but for all of them, Angular JS is used like the below link. https://scotch.io/tutorials/token-based-authentication-for-angularjs-and-laravel-apps I was wondering if I can ...
0
votes
1answer
14 views

Hide/show table rows with a specific class name when clicked another row with a different class name? in angular 2

I am trying to implement table row toggle functionality in angular 2 . Two types of table row with different classes are displayed in a loop from the data retrieved. some thing like this . <table&...
1
vote
1answer
26 views

Dynamically add ng-click in AngularJS when image was loaded

I want to dynamically add ng-click to an element when an image source has been loaded. I'm doing this right now like this: $scope.compile = function(element) { var el = angular.element(element);...
-2
votes
0answers
17 views

Is it possible to add Sub modules to AppModules in angular 2

My angular application consist quite a lot of components and my AppModule looks messy when i work around on it. Is it possible to create a sub module and add the sub module to AppModule so that my ...
-1
votes
0answers
9 views

Dynamic UI-tabs in angularJS

I have one requirements to create dynamic tabs based on the http.get json data and call specific http.get for each tab. I have created the dynamic tabs, but i'm not getting how to call the $http.get ...
0
votes
0answers
14 views

AngularJS render updated record + Laravel backend

<div class="col-xs-12"> <h2>Listing Employee</h2> <hr> <div class="employeeGrid"> <table> <tr> <th><a href="" ng-click="...
0
votes
1answer
12 views

Angular Service is returning data but not showing in HTML page

I am new to AngularJS and I'm practicing with custom services. The following service is returning data, I checked it with an alert box, but data are not showing on page. My HTML: <html> <...
0
votes
0answers
7 views

Angular Firefox (class constructors must be invoked with |new|)

I using Angular 1.6.4. My little application works well in crome and edge but firefox brings an error: TypeError: class constructors must be invoked with |new| Stack-Trace: h/<.invoke@http://...
0
votes
2answers
18 views

protractor :don't wait for elements to appears in Dom

I do end to end test using protractor.When I start up the test this message appears to me conFusion App E2E Testing menu 0 item should show the first comment author as Message: ...
0
votes
0answers
29 views

how to fix $scope.$on is not a function error?

I am trying to add a $scope.$on in order for $timeout and $interval to stop when the ui router controller moves to another route but I am getting error regarding $scope.$on is not a function. here's ...
-2
votes
1answer
15 views

ng-click not firing event. tried most previous post recommendation

I am trying to run a function on ng-click of a button. I have tried many things but still it doesnt seem to work. My function is attached to scope. I am trying to run a function on ng-click of a ...
-1
votes
0answers
14 views

Django + AngularJS + AJAX

Is it possible in Django to response rendered pages by ajax request?
0
votes
0answers
16 views

How to get intellisense angularjs VSCode?

I've already searched in several places but it did not work for me. Maybe because some are old So can anyone help me get the angularjs intellisense? Everything you need to install to work and which ...
3
votes
2answers
46 views

Angular 2 ngModel inside a function

I'm trying to pass a ngModel to a function and get the change, I don't know the way to use. this is what I got now: <ion-input text-right formControlName="monday" ...
1
vote
0answers
16 views

Upload image with c# & angular

I'm trying to upload an image with c# & angular. This is my HTML: <input type="file" name="uploadedImage" onchange="angular.element(this).scope().uploadImage(this.files)" accept="image/*" />...
-2
votes
1answer
25 views

Which is better between angularJs and angular2 for enterprise big product (startup)? [on hold]

We are planning to create an enterprise startup product that will release 3 or 4 years later. Recently we have planed to create our UI. Now question is that what will be a wise decision to choose ...
1
vote
1answer
32 views

The rest Api returns data but it is not showing up on the page

I am trying to fetch data from the rest api that I made. The api returns data but the angular fails to load it. I could see the data being passed from the network tab in developer tools. HTML code: &...
2
votes
1answer
15 views

$emit data not accesable in the controller

I am trying to send a data from the service to the controller with $emit. Whenever I am console.log in the service the data is there, but in the controller $rootScope.$on I don't see the data. ...
-1
votes
1answer
16 views

How to refresh AngularJs page without getting 404 error?

I have one page which the routing goes from. So if the user go from that root page e.g. http://localhost/rootPage and click on a button to go to http://localhost/rootPage/subPage that's fine however ...
1
vote
1answer
20 views

how to extends te browser timeout to avoid 504 http error?

I have a client that performing a pretty heavy request to a server, and the server succeed with the request but before it succeeded the browser got 504 GATEWAY TIMEOUT...how can I make the browser ...
1
vote
1answer
17 views

How to inject the Elasticsearch service to Kibana controller?

I am building a Kibana plugin which will query Elasticsearch on behalf of the user. The official documentation says that I could use the es service from the kibana module. uiModules .get('app/demo', [...
-6
votes
0answers
25 views

Page loading is very slow after using external libraries or frameworks [on hold]

For my website I am using Bootstrap, JQuery, AngularJs and some other external files. But, I noticed that page loading is very slow. How to overcome this problem?
0
votes
1answer
36 views

Split <input type=“text”> using Angular.js

Happy day everyone, I have started to work on angular-seed project. I have found jsfiddle with TODO example and would like to add another <input type-"text"> Is there any ways to split <...