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

AngularJS ngRoute Error

I'm attempting to build a simple "login" app in order to get a start in AngularJS, and I'm following a guide on this. It has mentioned that I should add "ngRoute" as a dependency to my app, which I ...
0
votes
1answer
9 views

Angular and Ajax Difference When Sending Request To NodeJS Server

I am trying to use some angular to communicate with a NodeJS server. What I would do in JQuery $.ajax({ url: "/list", type: "POST", contentType: "application/json", dataType: "json", ...
0
votes
1answer
15 views

Issue with passing values through state.go

I'm having trouble passing through a uid into the $state.go function. Here is my controller: .controller('chatCtrl', function($scope,$http,$ionicPopup,$state,$ionicHistory,$stateParams) { ...
0
votes
0answers
3 views

How do you update a mocked service return value in each test iteration of an angular service unit test

I am trying to write a unit test for an angular service where I have to mock an injected service and provider. I want to change the return values for each test. Something like so: service: (function(...
0
votes
1answer
18 views

ng-view not showing anything in angular

here is my angular app. var MyApp = angular.module('myApp', ['ngRoute']); MyApp.config(function ($routeProvider, $locationProvider) { $routeProvider .when("/RestChecker", { ...
0
votes
0answers
6 views

Change default $state with condition

I have an app bulding with ionic, angular and apache cordova. I have a login for two kind of user. What I want is to avoid the login page once the user is logged in. I bought a template for my app,...
0
votes
1answer
14 views

Angularjs: any directive to convert a file XLSX, XLS to Array [object] ou other best practice?

I would like to know the best way to import a Excel file in my HTML, with Angular and read it data. Any ideias? I did this but from .CSV to array object, it worked perfect with a angular directive. ...
-1
votes
1answer
13 views

How to record screen ionic 1 ( ios )

I have an application to open the camera and add some filters on it. I just want to record screen and save it as mp4. I've searched but nothing useful I found, is it possible at all?
94
votes
9answers
92k views

AngularJS $location not changing the path

I'm having an issue with changing the URL of the page after a form has been submitted. Here's the flow of my app: Routes are set, URL is recognized to some form page. Page loads, controller sets ...
0
votes
0answers
7 views

Custom Url with Umbraco(other CMS) to point to existing website

We have a running multi-lingual app hosted in Azure written in AngularJS. For managing some of the unsecured/public pages, we are looking for hosting another app with a CMS. So our app structure is ...
0
votes
0answers
7 views

POST http://localhost:9000/saveuserpermissions 415 (Unsupported Media Type)?

Here is my Json response having action class in controller,and model class also representing the Json Format,having field to hold the Json Array.Im getting unsupported media, Where do I went wrong....
0
votes
3answers
35 views

AngularJS - How to cache service`s ajax result to reuse in controller

I was recomended to use Angular services in order to centralize many repetative functions that were store in my controller, so I am rewriting my code using services now. It seemed simple at first ...
2
votes
2answers
7k views

Refused to set unsafe header “Cookie” error in browser yet request is successful

I'm using Angularjs. When I set Cookie header with xhr.setRequestHeader() I get the following error on Chrome: Refused to set unsafe header "Cookie" However, the Cookie is included into the request ...
0
votes
2answers
32 views

Return promise from Angular service

I have a service that (when it's all said and done) updates a value on the database. I would like to update the view scope based on the result (success/fail) but of course the http request used by ...
0
votes
1answer
26 views

Ionic ng-repeat not working correctly

It seemed to work on phonegap correctly, however crashed a few times while making changes. However while installing ionic, covoda correctly via npm terminal this ng-repeat doesn't seem to work. My ...
0
votes
0answers
8 views

Angularjs unit test factory with promise

I am trying to write test case for my below factory in which i am using a Promise. myModule.factory("quoteFactory", function($http, $q){ var defer = $q.defer(); var getQuotes = function(){ ...
-1
votes
0answers
27 views

Trigger ng-init on button click

I have an ng-init which is rendered/triggered at the first page load, but when I click on a button it does not refresh the data. Below is the link of that. http://stackoverflow.com/questions/...
0
votes
0answers
12 views

angular merged into window object by webpack?

I have a very strange problem with webpack. I have this webpack.config file: https://github.com/saike/maluvich-browser/blob/master/webpack.config.babel.js And i import angular through es6 module ...
-1
votes
1answer
14 views

AngularJS, how to show a scrollbar when a list grows

I would like create a screen (AnguarJS, angular-material) : <div layout="column"> <div> <!-- 80% of window browser --> <md-list> <md-list-item ng-repeat="...
52
votes
4answers
44k views

How can I preserve new lines in an AngularJS partial?

Within an AngularJS partial I am looping over a list of entries as follows: <ul class="entries"> <li ng-repeat="entry in entries"> <strong>{{ entry.title }}</strong&...
0
votes
2answers
20 views

Stopping Angular Activity Monitor (sean3z)

Does anyone know how to correctly unsubscribe from the Activity Monitoring? I have been trying the notes on the github page, but to no avail. I am trying to turn off monitoring when user sign out from ...
0
votes
0answers
6 views

Merge two SCOPES from separate sources (same construct)

I have a function var getData = function() { $http.get('(url of remote site)/swi/20?expand=true').success(function (data) { $scope.listOfServices = data.runningServices; }); }; Which ...
0
votes
4answers
43 views

How to create array of string with each string enclosed with single quote(javascript)

I have an object which I am iterating through it's key and pushing all of its key in an array, I need to enclose each string with single quote, so for example if I have an object {"name": true, "...
0
votes
0answers
11 views

Getting scope objects from directive link in Angular/Jasmine test

Given the following directive: angular.module('app').directive('dir2', function () { var directive = {}; directive.restrict = 'EA'; directive.scope = { control: '=' }; ...
0
votes
0answers
10 views

Pass parameter from the view back to angular poller service to handle functionality

This is my service code : (function(){ angular.module('app.system') .factory('Poller', function($http, $timeout) { var data = { eventObj: null, spinner:false ...
0
votes
1answer
14 views

Angularjs mdDialog - How to send back data to my first controller

I send some info to my md-Dialog using 'locals' attribute which works perfectly. After the user presses a button he will send some info through $resource method and get a response. I need to show ...
0
votes
0answers
9 views

How to show data on page from firebase?

users: { uidOfJacob: { stackId: 884522, ssn: "999-99-9999", profile: { displayName: "Jacob Philips" } }, uidOfPuf: { stackId: 209103, ssn: "999-99-9999", ...
1
vote
2answers
71 views

Angular UI Router 1.0.0 - prevent route load with $transitions.onBefore

I upgraded to UI Router 1.0.0, which has changed from .$on($stateChangeX to $transitions.onX( (see $transitions here). I need to resolve the user's profile and their access BEFORE navigation to the ...
0
votes
1answer
16 views

Module is not available, multiple controllers

I spent 2 days already and didn't find the error: Error: $controller:ctrlreg A controller with this name is not registered. The controller with the name 'clientController' is not registered. I ...
0
votes
1answer
14 views

Cannot save and show data from angular polling factory function only with $scope

I have a service with the following function below : (function(){ angular.module('app.system') .factory('Poller', function($http, $timeout) { var data = { eventObj: null, ...
0
votes
1answer
19 views

Systemjs angular 2 produces 50 server requests for resources

I was following the angular2 quickstart tutorial on Angular.io. Funny enough, it produces 50 separate requests, i do not understand why? Is there a way to bundle everything in one piece? I want to ...
0
votes
0answers
28 views

How can I setup up customizable CSS based on the subdomain?

I'm setting up a single instance single database multi-tenant application. The backend is written in Ruby on Rails, while the frontend is a separate app in AngularJS with a Rails framework. I'm ...
2
votes
5answers
112 views
+50

AngularJS select option initialize

I have this select tag: <select class="form-control" data-ng-model="contact.title" data-ng-options="title.title as title.title for title in titles track by title.title"> <option></...
0
votes
1answer
11 views

Testing directive in Angular/Jasmine - 'expect' doesn't work

Given this directive: angular.module(moduleName). directive("dir1", function() { return { restrict: "AE", scope: { myvar: '=' }, templateUrl: ...
0
votes
3answers
30 views

cross domain localhost:port request denied with $http angularjs request to web api

angular js hosted by ASP.NET server. Making call to web api. when do POST web api without parameter then works. But when pass paramter to POST web api then, it gives below error. Error: XMLHttpRequest ...
0
votes
1answer
15 views

How to use CasperJS to fill in AngularJS input fields w/out a form tag

I'm trying to write a CasperJS script which does a login at https://frontier.com/login. I'm having trouble because: it uses AngularJS so it seems I can't access and change the values held in its ...
0
votes
0answers
3 views

md-autocomplete not updating origional list

Angular material md-autocomplete not updating/refreshing original list while hitting service. Its working by old list but not update fresh list as text changed in md-autocomplete. <md-autocomplete ...
0
votes
1answer
10 views

Click in Angularjs using Casperjs

I would like to click in angularjs using casperjs. However, i cant achieve this. The webpage populates a dialogbox everytime i run so this is why i need to click. This is what i try to click <...
0
votes
3answers
26 views

Confusion over different behavior of different directives in Angular

I am confused between the different behavior of different directives. In below code ng-repeat just takes a string but ng-source needs image to be an expression. Can someone explain? <ul> ...
0
votes
1answer
16 views

Why does my ng-class display even when false

I have an image I'm trying to shake when a user guesses the name of a fish wrong. I'm using a conditional ng-class="{'shake':error}". However, even when the answer is correct the image shakes. I don't ...
0
votes
1answer
11 views

Angular not routing properly. URL is localhost:8081/#!/#pageName

I am making a simple Angular application that has an index.html which loads other HTML pages as views based on which navbar item selected; however, the routing is not working as expected. The main....
4
votes
1answer
8k views

How to use SASS in Ionic framework?

I am trying to use SASS in my project. I open this link and follow all command. I create a project and setup SASS. http://learn.ionicframework.com/formulas/working-with-sass/ I got this directory ...
1
vote
1answer
12 views

Get some sort of error indication when calling a non-existing method in Angular

I just spent an hour figuring out a type. I had a component: <my-component on-info-updated="vm.onInfoUpdated(info)"/> Unfortunately the function in my controller was: onInfoUpdate(info) { ... ...
-3
votes
1answer
18 views
0
votes
1answer
23 views

Testing Angular/Jasmine directive cannot GET template html

I have the following Karma/Jasmine test of an Angular directive that contains a templateUrl: describe("topbar Directive", function() { var scope,element; beforeEach(module('app')); ...
0
votes
2answers
11 views

How do i upload multiple file with multiple upload buttons in protractor?

var path = require('path'), uploadInput = element(by.css("input[type=file]")), fileToUpload = "../../download.jpeg", absolutePath = path.resolve(__dirname, fileToUpload); ...
0
votes
1answer
15 views

Angular JS 1 routing 404 issue

I have a basic single page application in Angular Js. I have applied routing and set 'Html5Mode' to true. My URL's have been cleaned up, but they now result in a 404 when trying to access the URL. ...
0
votes
2answers
16 views

Not able to display array in Object

I have an app where a call to my API returns an object that also contains an array of objects. Essentially: { "_id": "587bc430e64e9f28a6894dd4", "lastname": "Lane", "firstname": ...
0
votes
0answers
27 views

AngularJS Cannot Set Property “PropertyName” of Null

This error is absolutely driving me crazy, and I cannot seem to fix it. I have a drop-down list that dynamically updates itself when the user selects a new option. The objects I'm working with are "...
0
votes
1answer
26 views

http json in IONIC view

Have list of project, fetched with succes from API service in my IONIC view. Now i need that when i click "see detail", the APP fetch details of project from API (or localstorage) and then render in ...