Use for questions about AngularJS, the open-source JavaScript framework. Do NOT use this tag for Angular 2 or later versions; instead, use the "angular" tag.

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

0
votes
0answers
5 views

How to modify data in Observable in Angular 2?

I am working on learning Angular 2 and Typescript. I am building a simple web application that grabs data from a WEB API and displays it in a list. Then once the user clicks an item in the list, they ...
0
votes
0answers
11 views

Angular Controller returns 404 on a Route Parameter

I'm building my first web app with Node.js and AngularJs. My problem lies in this code here: var app = angular.module('Martin', ['ngResource','ngRoute']); app.config(['$routeProvider', function($...
0
votes
0answers
7 views

Unknown provider: $routeParams

I'm learning [email protected], I try to do a routing with $routeParams. (() => { 'use strict' config.$inject = ['$routeProvider','$locationProvider', '$routeParams'] function config ($...
0
votes
0answers
6 views

how can I test for dynamic elements on the page using protractor?

I am setting up protractor tests for my angularJs 1.14 app. We have a video player that displays subtitles. Each subtitle is in a div. When the player is playing, our code sets the class of the ...
0
votes
0answers
5 views

Not able to call correct web api method with string parameter in odata query

I don't have much experience with odata and I'm having trouble calling the correct method in my Angular app. Any help is much appreciated. Here's my route: config.Routes.MapHttpRoute( ...
0
votes
0answers
6 views

Force call of filter for Angular ng-repeat

I have this: <div class="row" ng-repeat="(promptId, q) in (categoryDoubleFiltered = (categoryFiltered | custom:searchText:selectAllCheckbox:answeredCheckbox))"> Everything is working fine. ...
0
votes
1answer
9 views

Angular 2 Trouble Displaying Content

I'm going to preface this question by saying that I'm fairly new to Angular 2 and Angular in general, so the odds are that this question is going to have a really easy answer. Anyway, here it is. I've ...
1
vote
0answers
12 views

Angular GET: Response for preflight has invalid HTTP status code 401

I am aware that there is a plenty of topics with similar problems. However none of them helped me to solve problem which I am struggling with. Using Angular and restangular (https://github.com/...
0
votes
0answers
9 views

Angular foreach interval

I'm try to post on another api using angularjs , and I need to put a interval or sleep after every post , to avoid block request. I need 3 or more interval second after every post. <!DOCTYPE html&...
0
votes
0answers
15 views

ng-if runs before the time

This is a custom Soundcloud player made with Plangular: a directive that uses AngularJS and Soundcloud api. Since a lot of Soundcloud tracks are not streamable by third part apps (the GET request ...
0
votes
0answers
10 views

Navigating website using selenium

I am trying to scrape information from a website but am having trouble navigating it using Selenium. The site uses ng-click to update a table so I must activate different tabs on the page to get the ...
-1
votes
0answers
15 views

i try to use anjulars route but when i click the link it redirect the page not load the view

to make it simple i i will add snip of codes that i used http://plnkr.co/edit/PpnCBBjSxvOodGaGbtnP?p=preview <script> var schools = angular.module("schools", ['ngRoute']); schools.controller('...
0
votes
0answers
17 views

How to hide html on form from directive template in AngularJS?

I have a basic Angular question. I have a Directive Template that looks like this: <div> <form name="newPhotosForm" role="form" enctype="multipart/form-data" ng-disabled="appStatus.busy ...
0
votes
0answers
11 views

Semester.getAdminSemesters is not a function

I am new to Node.js. I have a controller - "AdminController" as below- angular.module('adminController', ['adminServices']) .controller('adminCtrl', function($http, $location, $timeout, Semester, $...
0
votes
0answers
17 views

read response status in angularjs errorCallback

I am trying to read 403 status code(expected) in error call back but I see the following as response object. Object {data: null, status: -1, config: Object, statusText: "", headers: function} The ...
1
vote
0answers
6 views

How to change angular tinymce editor's localization dynamically?

I am using angular-ui-tinymce with tinymce ver 4.5.6 I am trying to change the localization of editor dynamically. for localization I use angular-translate However i am not able to do it. I try to ...
0
votes
0answers
4 views

Angular Spring Rest cant access response JSON property

Currently I'm learning Angular and Spring. In my dummy application, I got 2 rest controllers. One of them has to deal with a bidirectional relationship in the jpa level. My entities: Question Entity ...
0
votes
0answers
6 views

iOS10 Cordova/Ionic Post request - error return

After iOS10 launched my app stopped to work in iOS. In Android it works well with the endpoints that I am using in the current iOS version. But when I try to make a request the following json message ...
0
votes
0answers
11 views

Best way to Save user choices and update stats

I am currently building an Angular JS web app with firebase as my backend. It requires each user, upon login, to select 6 players out of a list of 49 players( each player is an object, and all 49 "...
0
votes
0answers
5 views

Angularfire - firebase object is undefined

I am using angularfire the npm way for which i have installed angularfire using npm install angularfire --save In my app.js I added the following require('angularfire'); angular.module('app', [ '...
0
votes
0answers
10 views

How to oclazyload angular config with ui-router?

What I'm trying to do is separate my router files without having to use a build tool in order that I can load them when needed. My ui-router file currently contains every route. My currently solution ...
0
votes
0answers
8 views

Mongo Meteor angular 2 search two collections

In Meteor Angular 2 template, I am trying to run a search. I have two collections, job and operator. Job: { _id: 'asdfasfdasfd', state: 'New York', id_operator: 'jkljkljkl', } And ...
0
votes
1answer
5 views

Using @Input Decorator to trigger ngOnChanges lifecycle hook in Angular 2

I am trying to use ngOnChanges to create a search filter as the user types in letters into the input. Here is my code: export class SearchComponent implements OnInit, OnChanges { @Input() ...
0
votes
0answers
11 views

Typescript transpiles differently for build vs save

I have an angular 1.6.x project being served up by a MVC project. When I hit save on any ts file, it transpiles my javascript as expected. When I build the site it transpiles the javascript into a ...
0
votes
0answers
9 views

HashPrefix + Html5Mode creates loop (Maximum call stack size exceeded)

this is my first post here and my explanation may be a little rusty so please forgive me in advance. I'm having a problem with AngularJs and C#. I'm following a step by step of a tutorial (https://...
0
votes
1answer
18 views

Angularjs change checkbox value according to server response

I have two groups of checkboxes where users choose their options and save it to the database as a string (is there a better option?). Is it possible the get this string response back from the server ...
0
votes
0answers
8 views

Angular Jasmine Karma unit testing factory with promise

I just can't figure out what I'm doing wrong. I have a factory (ObservationsService) with the following function: function editObservation (data) { console.log('editObservation', data); $http({ ...
0
votes
2answers
24 views

window.print is not printing text of input element

I know this question was asked before. But I could not found a sure solution for it yet. Though I tried all the previous solutions, it doesn't worked. I am doing some coding on angularjs and I have ...
0
votes
0answers
14 views

How can I refresh a user's session using JWT token

I'm fairly new to Angular and I'm trying to implement a mechanism for keeping active users logged in as long as they're active. I have a token endpoint that issues a JWT token to a user { "...
0
votes
1answer
12 views

e-form add row presents at top of table

I have an angularjs application and am using e-form to view/add/edit rows in a table. When I choose add, I would like the new row to present at the top of the list rather than the bottom of the list. ...
0
votes
0answers
22 views

How do I convert to a proper directive from a jquery script?

I don't know what is the equivalent to $() from link: function (scope, element, attrs, controller) { }. If I just drop the jquery script into the function, it works. But everywhere read on the ...
0
votes
1answer
13 views

Jasmine gives TypeError on $scope.$on

I'm using Jasmine/Karma to test Angularjs code and I'm brand new to Jasmine. I've got a basic test using expect(true).toEqual(true) which works, so it seems like the set up is okay. Once I try to test ...
0
votes
0answers
18 views

Angularjs controller Issue with REST call

I'm trying to create a simple web page that will load a series of keyword libraries from a database, and then display them. In our java code, I have a REST interface that fields the request and does ...
0
votes
1answer
12 views

angularjs ag-grid does not show row data

I am using ag-grid to return 1 row of data from a server. The data is returning from the server and it is set in the grid but the data is not displaying. This is my grid: $scope....
0
votes
0answers
14 views

Trying to get ion-checkedbox value to push to a section then delete when it is true

I am new to ionic and I got ion-checkedbox to to be true or false whenever I picked an object. But now I need to grab the object when its true to go to progress. I tried $scope.filter.push($scope....
0
votes
1answer
22 views

array data is not visible to li tag when pushed in angular

I'm new to angularjs. I'm trying to create a to do list app. The problem i'm facing is when i push the data to the object, the data is being displayed in the console but not the web page. I"m using ...
0
votes
0answers
35 views

Angular $scope not updating in view

I have tried so many answers to this question, but nothing works. The bug: Right now when the total data items added meets the item requirement, the item is removed from the list, but the list isn't ...
-2
votes
0answers
19 views

GET request on basic authenticated api with javascript

I have API using basic authentication for its security and I want to use that API from javascript code var string = $scope.username+':'+$scope.password; console.log(string); // ...
0
votes
0answers
10 views

Access array of object in mongoDB

Help me access and I need to modify/update I am using findAndModify "advanceAmountAndDate" : { "0" : { "advanceAmount" : 333, "...
0
votes
0answers
14 views

Can not get kendo element from view in angular

I am trying to get kendo datepicker element from my view in Angular. It's how I am trying to achieve this var element = angular.element("#finishDate"); and my html code ...
-2
votes
1answer
19 views

Add empty line ng-repeat

I have a table and I would like to have 4 lines per hour. Right now is : 1. 8h00 '1' 2. 8H00 '2' 3. 9H00 '3' 4. 12H00 '4' 5. 12H30 '5' And would like: 1. 8H00 '1' 2. 8H00 '2' 3. 8H00 'New' 4. ...
-1
votes
0answers
8 views

How to fix error of adding jquery file to angular js

I implemented a an infinite scroll. When I use button and ng-click it paginates properly. But when I add and ad infinite-scroll directive , links does not work properly. I know that the jquery is ...
0
votes
0answers
12 views

AngularJS rowspan to group hierarchical data using simple array model?

I refered to the existing post Use of rowspan to group hierarchical data but unfortunately data model uses multiple arrays and that post is not very helpful. I have a flat model resulted in flat ...
0
votes
0answers
8 views

ng-attr-title not working in kendo listview

The link is http://jsfiddle.net/usalanzhang/f39gf7fo/1/ The ng-attr-title is not working in the kendo listview.
0
votes
0answers
16 views

Google maps api clear direction on map

$scope.addMarker = function (places) { $scope.markers = []; $.each(places, function (key, value) { var marker = new google.maps.Marker({ position: {...
-1
votes
0answers
4 views

Ionic 1 Angular 1.5 component is not visible in device

I'm developing an app using ionic. Ionic v - 1 Angular v-1.5 I create a .component and it's working very much fine in browser but element is not visible. Exactly where those component are used. ...
0
votes
0answers
4 views

How to insert filename into MongoDB using Multer

I have a form in AngularJS with an input type file to upload just one image per submit. Using Node.js, Express, Mongoose and Multer, I'm trying to upload the image inside a specific directory (this ...
1
vote
1answer
20 views

angularJS set route params in controller

I have an app which creates several surveys with random survey ids. As the ids are generated in the backend they are set in the controller. I read the documentation on that, however I do not really ...
0
votes
1answer
5 views

Using an ag-grid inside an md-tab

I've used ag-grid, and have followed the rule of having the parent div of the page define an explicit height so that I can set a maximum height on the grid, allowing scrolling, rather than growing in ...
0
votes
1answer
21 views

update ng-repeat values angularJS with php

In the code, there's ng-repeat, and I have to update "frais" of all values displayed by ng-repeat. this code update only last value. how can I do to update all, please? file.html <ion-content ...