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 applications are also frequently known as single-page ...

learn more… | top users | synonyms (2)

1
vote
0answers
6 views

Jasmine spyOn doesn't take into account angular crubbins

spyOn(service, someMethod).and.callThrough(); then... var an_object = some_objects[0]; useADirectiveThatRepeatsOver(some_objects); expect(service.someMethod).toHaveBeenCalledWith(an_object); fails ...
0
votes
0answers
9 views

accessing file system in javascript or jquery or angularjs

I have a web application whose purpose is to upload some excel files and images related to that excel file. Now for example if directory structure on client side is as follows .. /education.xls /...
0
votes
0answers
15 views

Validation for the phone number using angularjs

I have a form which gets the phone number from the user.And it stores in the pattern (xxx)xxx-xxxx. For pattern generation I'm using angular mask. The problem I face here is in the validation. If the ...
0
votes
0answers
11 views

how pass an array to plugin in jquery

How can I pass an array of values from my script.js file to my plugin.js file and store it in a new variable? plugin.js var a=[] script.js b=[a,b,c,d,e,f] How would I define a function in plugin....
1
vote
0answers
10 views

Angular JS Query build

I'm trying to build a URL in my angular page. Here is a working URL using postman http://localhost:8080/api/app?user=77787f&path=/&projection=display To get this to work I'm hard-coding the ...
0
votes
1answer
11 views

Node Js angular cli, ng serve error, socket closed

hello i am trying to learn angular framework with a udemy course. by following the course i am trying to run the server so i can display things in node js cmd line . when i run ng serve to run the ...
0
votes
3answers
16 views

How to convert string values to numbers using parseInt in Angularjs?

I am facing an issue of converting string value to numbers when i pass into my input field. I have used parseInt but instead getting an NAN value . Here is my input field in html: <div class="...
0
votes
0answers
42 views

Can't fix Uncaught SyntaxError: Unexpected token <

<html lang="en" class="demo-2 no-js" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="generator" content= "HTML Tidy for Linux (vers 25 March 2009), see www.w3.org" /> &...
0
votes
0answers
8 views

How to require CSS into AngularJS templates with webpack?

The main use case I've seen for using webpack on css is with Angular2 or React where you have components that you can require the stylesheets onto. However, I'm using AngularJS so I don't know where I ...
1
vote
2answers
40 views

Array with Objects

I started learning AngularJS but had a little problem.... What is wrong here ? I try to declare songlist as an array with Song Objects but get an error to use "=" import { Song } from './song.model'; ...
0
votes
0answers
6 views

How to apply jquery plugin accessible Mega menu defaults in angular js

I would like to use Accessible Mega menu jquery plug in for angular application. I have sett the plug-in defaults in bottom of the body like below <script> $("nav:first")....
0
votes
0answers
12 views

AngularJS ng-options create custom range

I have a column in a table that displays remaining days until the task is overdue. I would like to create a simple ng-options dropdown that lists: overdue, < 7 days, < 2 weeks, < 30 days, ...
0
votes
2answers
20 views

Add a border style on click along with adding item to cart

I am trying to add a border to a div that houses my product. I want it to work together with the ng-click I already have that adds the product to the cart. So, when a user clicks the 'select' button a ...
1
vote
0answers
12 views

AngularJS + < IE11 results in crash when waiting for response from server

I can't quite figure this out. I'm calling a WebAPI method using Angular that returns JSON. Unfortunately, and out of my control, this method takes roughly 15-20 seconds to send data back to the ...
0
votes
1answer
11 views

How to access component controller when testing?

I am trying to put together some tests of a component. I have the following describe(`selecting an item`, () => { let element, $scope; beforeEach(module('my-app')) beforeEach(inject(($...
0
votes
1answer
17 views

angular js - point ng-model to one property of an object initially, but sync back to another

I have a kendo ui grid, where each row is editable, and in a specific column I want to sync the inputs data to the underlying grid data (an array of objects) while the user is typing, and bind the ...
0
votes
1answer
16 views

angular.js integration with apache kafka

I am new to apache kafka and apache spark. I want to integrate the kafka with my angularjs code. Basically I want to make sure that, when a user click on any link or searches anything on my website, ...
0
votes
2answers
9 views

Why Does Firebase Lose Reference outside the once() Function?

I'm using Firebase along with angularJS to fetch a list of users. I can read all the users from my database with the once() function, but I can't figure out why userList returns undefined below ....
0
votes
1answer
15 views

Promise is not waiting for nest promises before resolving

I have this initialization function that runs to set up global dependancies for my app I am using the npm package angular-global-resolve. The package works fine, the problem is I have one big promise ...
0
votes
0answers
7 views

Wait for rendering after manual $compile

I have a page with dynamic content. Content depends of a lot of options, so I use manual compiling using $compile. I have a directive like this: function compileHtml($compile, $timeout) { return {...
0
votes
1answer
11 views

Angularjs - dropdown not binding correctly AND not showing initial value

I am attempting to get data via a call to a WebApi within AngularJS. I have verified the service works and I am getting the correct data. The problem(s) are that the selected item is not appearing ...
1
vote
2answers
19 views

Directive not loading

I`m having some problem with my directive. The js files for the directive and the controller are included in index.html and the path is correct. No errors are given in the console, but my tag doesn`t ...
0
votes
0answers
5 views

why contentWindow of iframe is null when angular controller is refreshed

Intially contentWindow of iframe is working fine. I am playing youtube video in iframe. When controller loads first time contentWindow works fine and i am able to use contentWindow.postMessage() ...
0
votes
1answer
14 views

Angular ng-model ng-selected

I want to bind a model value to selected item <select id="hours" ng-model="v.T_Hour"> <option ng-repeat="n in [].constructor(24) track by $index" ng-selected="{{$index==v.T_Hour}}" value=...
0
votes
1answer
20 views

Function that allows only certain amount of digits as integer in decimal and also a certain amount of decimal

I was wondering if you guys can help me out on building a function in Javascript that is executed in the keypress event that prevents to have more than 10 digits as Integer and 2 as decimals. Correct ...
0
votes
0answers
3 views

Output Task Runner Explorer errors to file

I'm trying to run karma tests through gulp for an angular build but when a test fails it dumps a gargantuan amount of junk text that makes finding the actual source of the error impossible as I cannot ...
0
votes
1answer
11 views

AngularJS pagination only shows one page

I'm using angular-ui-bootstrap-tpls version: 0.14.3 to paginate some result i bring from some database, the problem is that the pagination always looks like this: << < 1 > >> It ...
1
vote
2answers
27 views

Angular JS - NG-Repeat with filters and groupBy

I am building a dashboard to display ogoing and closed issues. I got everything working with angular's ng-repeat with filters and grouped by date. Here is a quick sample of what I got so far: <div ...
0
votes
1answer
4 views

UI router cannot resolve state error message

I am working on angular application at the moment, using ui-router and I am getting the following error message. Error: Could not resolve 'static.about' from state 'static' and I am not sure why. ...
0
votes
1answer
5 views

Ionic Toggle and Angular with localStorage

I have problem with save values to localStorage with ionic toggle. I tried many thing. One of the solution works on web browser but not on device. Here is my code: <ion-toggle ng-model="enable" ...
-1
votes
0answers
17 views

angular how do you $filter an object inside an array

I want to find a whole object inside an array using angular with no iteration(update when i see no iteration i mean using the $filter no foreach, for, while loops). [ { _id: "1", name: "Milk",...
0
votes
0answers
7 views

Lighthouse/Service Worker, how to return http 200 when offline

My application currently uses webpack,angular js, and a service worker. Using sw-precache plugin to create my service worker. https://www.npmjs.com/package/sw-precache-webpack-plugin The service ...
0
votes
1answer
7 views

Ionic - Dynamic start-up page does not get stateParams

I am building an Ionic app that has content for each month of the year. I would like to show the content of the current month when the user starts the app. Afterwards, the user can still choose ...
0
votes
0answers
21 views

Can I load a script only for the view that is being injected - Angular

So, at the moment I have an index.html page that contains every single reference to all scripts I need (angular libraries, jquery libraries, third party plugins, custom javascripts, controllers, ...
0
votes
1answer
11 views

Capturing checkbox values to table

I'm trying to create a form that will capture input, select and checkbox values and post them to a table. Everything seems to be working fine, with the exception of the checkboxes. What am I doing ...
0
votes
4answers
22 views

How to make sure that $scope.property has value before it is used

I have an Angular controller with two $scope properties: $scope.details = ortabilityService.detail(); $scope.treeViewOptions = { dataSource: new kendo.data....
0
votes
0answers
15 views

Angular - change directive input not trigger digest

My app contain 3 directives: angular.module('mod').directive('directive1', function() { return { restrict: 'E', controller: 'controller', templateUrl: 'tpl1.html', ...
0
votes
2answers
10 views

Scope property exists in child controller when it should not

I have a child controller. In the parent controller $scope.dealers exist, but not in the child controller. How is it possible that $scope.dealers is existing in the child controller? If you look in ...
0
votes
1answer
26 views

DOM doesn't get updated after angular event is fired is a different controller

DOM doesn't get updated after angular event is fired is a different controller. If you add a couple of items into the list, delete one of the items, and then try to add another item, the model in ...
1
vote
1answer
16 views

Angular Routing , browser URL not updating as expected

I have an angular app and i am using partial views in the app and routing using $routeProvider , the app is hosted in a server ,everything works great. The URL to launch the app is something like ...
1
vote
0answers
10 views

Debug jQuery/angular event handlers in Chrome Tools (getEventListeners)

We can use Chrome Tools to inspect event listeners attached to specific DOM nodes. If we attach an event listener with JavaScript we will see the attach point in the output: 2277 document....
0
votes
1answer
20 views

angular: filter to replace and complete relative <a href=“/”> paths

I'm new to angular and I'm struggling to replace relative href paths inside my text. For example purposes, I have the following controller/scope/html/filter: $scope.text = 'Here you can find the ...
0
votes
0answers
10 views

AngularJs X-editable table same functionality for edit and add row

I'm using x-editable for adding new row and edit the existing column. I want to call different functions for posting the data onto the server. From the documents I can see that we can use ...
0
votes
1answer
25 views

Serialize calls in $q.all

Requirements have changed and I'm in a position where I can either completely refactor a boatload of code, or figure out how to serialize a number of functions in a $q.all promise. var serverCalls = [...
-1
votes
1answer
21 views

Can't find variable: _ when using jasmine to test AngularJS service

I am testing an AngularJS service that uses the Lodash library. When I run the tests through karma-jasmine I get an error: ReferenceError: Can't find variable: _ Is there a way to configure karma/...
-1
votes
1answer
24 views

Getting the http header request id from the http request?

In angular can I get the http request_id from the request header in my code? I am making a post call and I want to compare the value of request_id before and after the request. This is how my call ...
0
votes
0answers
12 views

angularjs [$injector:modulerr] when added angulartics the app doesn't open in firefox, but OK in chrome

I added the angulartics to my app and it runs fine on chrome but doesn't load at all on firefox. Do you know where the problem is coming from? here is my app module: angular.module("my-App", [ '...
-2
votes
0answers
16 views

How do you turn a d3 graph off completely?

I just realized I have a problem with D3.js. I have two resizable force graphs on two completely different pages. However, it seems that when I switch from one page to the next, either the same graph ...
0
votes
0answers
8 views

angular hybrid - webpack - nomod

I am trying to implement webpack for angular hybrid( using ngupgrade ) but I am getting an error Module 'app' is not available! You either misspelled the module name or forgot to load it 'app' is ...
0
votes
0answers
11 views

angular 2 routing and menu basic query

having a very basic issue and confusion regarging angular 2 routing and a menu template. @Component({ selector: 'pm-app', template: ` <div> <nav class='navbar navbar-...