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

Angularjs watch array and get changed object

In the context of inserting or deleting from an array in angular, is it possible to watch the array and then get the object that was added or deleted from the array? I don't care about the objects ...
0
votes
0answers
7 views

Abstracting out two lines of code in Coffeescript

I am currently working on refactoring two methods that exist in directives into a service. This is method one: scope.computeStyle = (component) -> elementHash = {} if component.element.type =...
0
votes
0answers
6 views

How to unit test an Angular 1.5 Component template?

So, here's my test: describe('My Test', function(){ var $componentController, $compile, controller, scope; beforeEach(inject(function($injector, $rootScope, $templateCache){ ...
0
votes
0answers
4 views

Moving code into an angular.js directive - Removing original HTML renders my directive ineffective, however If I leave the original mine works

I a new job, and I was asked to move some HTML into an angular directive. Original Code: add-roles.html <md-autocomplete ng-if="add.security && add.roles" class="...
-2
votes
0answers
5 views

How to convert a Gulp Angular project to and Ionic App

I have a gulp angular project with the following structure. To serve it as a web app, I use the command gulp serve. Gulp then does some magic that rearranges all the files in the .tmp directory. I ...
0
votes
0answers
9 views

Angularjs v1.3.9 causing cache issue in ie11

I found this link which seems to have helped a lot of people with the same issue I am facing. However, I am not sure how to implement this logic. I tried placing it in URL API portion but it didn't ...
0
votes
0answers
8 views

Angular `orderBy` filter issue with predicate array

It seems either there is an issue in angular orderBy filter or I am missing something I want to order by multiple properties hence passing all the properties as array of signed strings. I have a ...
1
vote
0answers
12 views

When I click on any edit, it makes all the contacts editable in angularjs

I am new to Angularjs. I am using ng-repeat and displaying information in a table format. When I click on any edit, it makes all the contacts editable in angularjs. I just to edit whichever I click ...
3
votes
3answers
33 views

AngularJS How to access parameter of one ngController in another ngController

Here is the thing: <div ng-contoller="controller1"> <div ng-controller="controller2" ng-init="controller2.someMethod(controller1.Data.someId)"> {{something}} </div> </...
0
votes
0answers
4 views

Ionic 1 Keyboard pushes content up

I have looked extensively on ways to fix this issue and I have tried many suggestions, but have yet to solve the problem. I have an Ionic 1 (1.7.16) app, which has a login page that has input fields. ...
0
votes
0answers
6 views

Angular 1/2 hybrid app error in ie9: “TypeError: Unable to get value of the property 'ref': object is null or undefined”

I have an Angular 1->2 hybrid app with Angular 1.5.8 and Angular 2.2. I have to support IE9 :( I have included the core-js shims: <script src="node_modules/core-js/client/shim.min.js"></...
0
votes
0answers
14 views

AngularJS, Regex causes error in test

When the user enters a specific expression, it gets translated to a button in the view. Here is the code: scope.buttonmaker = function(haystack) { needle = /argumentation-link_to\...
0
votes
1answer
9 views

$window object not updated inside Angular directive

So, I have a directive that has a dependency on $window, the problem is that the Window object has some properties that are fetched and updated asynchronously. Inside the directive, I don't when ...
0
votes
0answers
6 views

google directionRenderer polylineOptions multiple color

So I managed to initialize the DirectionRenderer service from google and managed it to render multiple directions with what the DirectionService returns. The thing is, that when it displays routes ...
0
votes
0answers
4 views

Node.js - unexpected duplicate post rest call

Tech Stack: Angular 1.4 app-client, that POSTs to: Node 5.1 app-server (koa/es6 based framework), that POSTs to: Node 5.1 microservice-server (koa/es6 based framework), that calls: Oracle 11.x ...
0
votes
0answers
7 views

Bootstrap tagsinput with angular ng-model issue

I have an angular form that is creating an object with tags: <form class="form-horizontal"> <div class="form-group"> <label>Tags</label> <input type="text" id="tags-...
0
votes
0answers
7 views

Allow CORS in Heroku Angular JS APP

I have an Only Angular JS Applications hosted in Heroku, it works perfectly, but now, i uptdate the application implementing an $http request (for consuming an API), but when i execute the app i get ...
0
votes
1answer
14 views

firebase is not defined at firebase.initializeApp(config);

I cloned the angular-seed repo and am trying to create an app using firebase on top of it. I have <script src="https://www.gstatic.com/firebasejs/3.6.5/firebase.js"></script> in my HTML ...
0
votes
0answers
4 views

Angular-ui-grid pagination controls not being shown

I´m using the following controller and html configuration to have a paginated ui-grid: app.controller('AdminProspectGridCtrl', function ($scope, $http, uiGridConstants) { $scope....
0
votes
1answer
11 views

Preventing curly braces from showing on webpage

A simple program to help familiarize myself with AngularJS, and currently having an issue with the code within the tags. Every time I run this code, the curly braces and the content inside always ...
0
votes
2answers
18 views

How can you return a dynamically typed object in Typescript / Angular2?

I am trying to create a modal generator service. Ultimately, I would like to use it to creative various types of modals. I have a function to create modal components, and I would like it to accept ...
0
votes
0answers
4 views

How do I get started with AngularJS i18n/l10n?

I have an app which deals with Teams and a customer who wants to use it to manage "Groups". It seems I should be able to use i18n to do this vocabulary change even though I'm not changing languages. ...
0
votes
2answers
16 views

angularjs ng-repeater dynamically delete data

I have a situation where users added sample data as shown in figure. How can I add Delete button which deletes particular sample ONLY. From figure , I want 'Delete Sample 1" to delete Sample 1 ...
0
votes
0answers
8 views

Nested Directive Not Updating View(DOM) Element in AngularJs

I've made a nested directive, and tried to call it from a html view,but not updating the view element in html. I can get the updated value from the calling controller but can't see the updated effect ...
0
votes
0answers
11 views

How to display label and data on pie chart using angular charts

Hi How to always display tooltips on pie chart using angular chart. I'm trying using this part of code: $scope.options = { showToolTips: true, tooltipEvents: [], ...
0
votes
1answer
38 views

How to use angular ng-repeat for following JSON object?

I want to match headfield values with datafield, and have to fetch corresponding value into table data. HTML: <table> <thead> <tr> <th ng-repeat="ReportsHead in ...
0
votes
0answers
17 views

Event Delegation in AngularJS (jQuery .on() replacement)

We are trying to remove jQuery as a dependency from one of our projects written in AngularJS, but we are having trouble when replacing this kind of constructions: angular.element(ancestorSelector).on(...
0
votes
1answer
16 views

Angularjs custom filter with expression alias and limitTo

I am using ng-repeat to show all items in an result set. I have a custom search box which filters out results via a custom filter. I now need to add pagination, but I also need all the items in the ...
0
votes
1answer
27 views

Performance concern with static .json file getting called repeatedly from $http.get call with angular

I'm wondering about my decisions with performance and best practices as this looks like a code smell and a performance hit. I have a static .json file "Airports.json" above json is ( ~200 lines ...
0
votes
1answer
14 views

$localstorage vs cookies in angularjs

When through the cookies and localstorage in angularjs, they meant to be the same and still have doubt in it so, my questions are: 1.What is the main difference between cookies and localstorage? 2....
0
votes
1answer
9 views

Angular: Preventing Display of Directives Until User Types in Search Bar

I'm working with Angular to display a list of users with roles on the page, and allow filtering based on email address. This is working well, but Angular adds a lot of DOM elements and watchers, ...
0
votes
1answer
10 views

AngularJS Routes Created from json data all same view template

I need to make a post-type in my simple angular app... I have a json file with contacts { "contacts": [ { "name": "Alf", "tel": [ { "home": "...
0
votes
2answers
11 views

Boolean value does not reflect everywhere with ng-model; verified with Batarang and using controller-as

I'm trying to understand watchers, but I've come across a bit of a weird problem. I have code like this: HTML <div ng-app='dummyApp'> <div ng-controller="SampleController as sample"> ...
0
votes
0answers
10 views

multiple file uploads with angularJS and PHP

I am trying to learn angularJS by reading some tutorials, at this stage i'm trying to create a form with multiple upload files (2 separate ones). I thought of using the ng-file-upload plugin. I'm ...
1
vote
1answer
20 views

Bootstrap's Tab Control fires code for all tabs

I am using the Bootstrap 3.0 Tab Strip on my Angular 1.5.8 MVC asp.net web application. Currently I have 5 tabs. Each tab makes an expensive data call to the server to retrieve data. Currently, ...
0
votes
0answers
14 views

How Do I resolve the [SetContextPropertiesRule]{Context} Setting property 'source' in AngularJs?

I have to setup the AngularJS project in Eclipse and I have to run the index.html file I got this error: WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst....
0
votes
2answers
16 views

angular multi column orderby convers number to string

I'm trying to sort on multiple columns inside angular's ng-repeat. The 2nd column is a number, but it is being treated like a string. Where 22 is ordered before 3 Here is a JSFiddle to reproduce ...
0
votes
1answer
14 views

building a angular view based on ajax response

I am trying to get started with Angular(1), I have a layout where the nav needs to change based on the type of user that is logged in, when the page loads I send a request to the API to the user ...
0
votes
1answer
12 views

Acts as taggable not adding tags with an angular form

I have an angular form that is creating an object with tags: <form class="form-horizontal" ng-submit="createBeacon(beaconData)"> <div class="form-group"> <label>Tags</label&...
0
votes
0answers
17 views

Angular editable dropdown - make editable based on selected value

UPDATE 1: developed the first sample code to set the basis for correct implementation. I found this library: https://libraries.io/bower/editable-dropdown-angularjs which allows adding editable ...
-3
votes
2answers
44 views

Read a JSON list in list [duplicate]

I have a json like this : { "Project [id=1, dateDebut=2017-01-13, dateFin=2017-01-18, description=qsd, sponsor=qsd ]" : [ {"id":1,"title":"qsd ","description":"qsdqsd","dateFin":"...
0
votes
0answers
14 views

Error: $injector:nomod Module Unavailable and Error: $controller:ctrlreg A controller with this name is not registered

I got two errors after trying to use dependency injection and ui-router. In this project, I only use one module called 'confusionApp'. When I changing to use dependency injection, I got the module ...
-1
votes
0answers
17 views

How do I update a non-active user web page with AngularJS?

Suppose we have an user logged in to a website like Facebook, and minimized his/her browser or just working on an other tab like making the page inactive. How can we send an update or manipulate the ...
0
votes
0answers
5 views

Mapping UI components (html/css) to angularjs2 components?

Is it a good practice to keep UI (html/css) component tree the same as Angularjs2 components wich adds Javascript part to existing UI (html/css) elements ?
0
votes
3answers
21 views

Angular ng-options, sort object

I have an object which looks like: { 3019: 'Javascript', 3046: 'Css' } and then, I show this object in a select like: <select ng-model="langChoosed" ng-options="key as value for (...
0
votes
0answers
6 views

Karma-webpack+angular TypeError: undefined is not an object (evaluating '$httpBackend.expectPOST'

I got the following error PhantomJS 2.1.1 (Linux 0.0.0) leave API service create(): should create a leave FAILED static/app.min.js:4804:54 forEach@static/app.min.js:440:25 ...
0
votes
1answer
16 views

Testing if callback have been called using $rootScope.$broadcast and $scope.$on

I've been trying testing if a callback have been called on my controller. Controller (function () { 'use strict'; angular .module('GeoDashboard') .controller('CiudadCtrl', ...
-1
votes
0answers
19 views

upload many files using angularjs

I need to upload files to a specific URl (foe exemple a file in the server here i did an exemple with a local URL). Well i did a lot of searches cause i'm new in angular but this does not work: I had ...
2
votes
3answers
36 views

prevent all $http request if a token is undefined

How could I prevent all $http request in angular if a token is not resolved. the token is stored at login in localStorage I'm looking for something like app.config("$httpInterceptor", function(){ ...
0
votes
2answers
27 views

ng-model value inconsistency

Whenever we use ng-model on an input or select tag, getting ng-model object as undefined into the controller. But once touched an input getting proper object with property. Why : On direct submit ...