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)

0
votes
0answers
2 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
0answers
5 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 $...
0
votes
0answers
14 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
10 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
1answer
16 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
3 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
0answers
3 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
13 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
6 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
5 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
18 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
10 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
3answers
17 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
13 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
9 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
25 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
13 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
7 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
6 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 onbeforesave ...
0
votes
1answer
24 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
20 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
10 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
13 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
5 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
10 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-...
-1
votes
1answer
30 views

Attempting to call a method from an onload(), am told method is not supported

I'm attempting to make a simple Angular form for uploading user input. One of the steps involves selecting an image. I'm trying to fetch an image from a remote source, before uploading it to a server. ...
0
votes
1answer
17 views

angular directive for post DOM load

I'm sort of a beginner to angular and needing help constructing a directive for post DOM load. I have this script below functional, but it uses a timer. I'd rather have something more robust insuring ...
0
votes
0answers
12 views

Run controllers only after initialization is complete in AngularJS with angular-global-resolve

I am having a problem where my controllers are running before initialization of my app, and I came across this NPM package that works almost perfectly. The only problem I'm having is the ...
0
votes
0answers
13 views

Why does my AngularJS home page not load when linked from itself

This is my home-index.js file var homeIndexModule = angular.module("homeIndex", ["ngRoute"]); homeIndexModule.config(["$routeProvider", function ($routeProvider) { $routeProvider.when("/", { ...
0
votes
1answer
15 views

Understanding the error caused by ng-pattern

I'm using ng-pattern in order to get the correct format of the user phone number. But when I tried to run the app Im getting an error stating Error: [$parse:lexerr] Lexer Error: Unexpected next ...
0
votes
1answer
24 views

Adding HTML elements dynamically in nested sections

I am trying to add a bunch of HTML elements to my page dynamically. I have following sections of elements in the page : `Company section :` has EIN, Company Name and Delete controls. `Control ...
0
votes
2answers
16 views

What are the pros and cons of ui-sref?

I'm starting to work on a legacy project using Angular 1.5 and it uses both href and ui-sref. I don't really see the point of using the latter, especially for top menu. Example menu.html <a ui-...
0
votes
0answers
9 views

angular-translate get all translations at runtime

Is there a way to get the list of available translations for the current selected language at runtime? I miss something like $translate.getTranslations()
0
votes
1answer
26 views

Get token with Angularjs

I'm working on an Angularjs + Moodle + WebService APP I have done a little Login page and have a question. I'm getting the Token of my user via $.ajax and I can see it in my chrome console. The ...
0
votes
1answer
8 views

Return value from list of lat / long based upon current geolocation ios app javascript

I have an App I want to expand to return some data from closest entry from a list of Lat/Longs (and 2 additional fields) based upon the user's current geolocation. It's approx 5,000 entries large. I ...
0
votes
1answer
21 views

AngularJS object differences

I'm trying to wrap my head around javascript objects and am struggling to see how two objects are different. I have an input form for adding records to a database and a controller that does the ...
0
votes
1answer
14 views

Debug file size - Chrome Dev Tools

In the below image, I have an XHR (request?) that is returning over 10mb. I tried to open this in a new tab, but Chrome runs out of memory and quits. How can I evaluate this file to understand what is ...
1
vote
0answers
10 views

How to set abstract routes as children of an abstract route?

I am having a problem where my controllers are running before initialization of my app, and I came across this solution. The problem is I have several abstract routes and setting those abstract ...
0
votes
3answers
21 views

Format time using angular js

I want to fill a select (dropdownlist) with hours from 00 to 23 using angular in the format "13:00","08:00" , i tied the following code : <option ng-repeat="n in [].constructor(24) track by $...
0
votes
0answers
4 views

How to change the ui-grid data upon the dropdown valueselection using angular js

I have a requirement of showing the excel data on UI, for this i used ui-grid and was able to show the excel data in ui-grid. But only one sheet data gets load in ui-grid. If I am using the excel ...
0
votes
0answers
13 views

How to bind Country State values in Dropdown During runtime

Here i'm using angular with bootstrap i loaded data from database into table here i put a Edit button when i click Edit button respective columns Binding in textbox,Dropdown but if i cange only name ...
0
votes
1answer
23 views

How do I create a div element in AngularJs?

How do I create a div element dynamically in AngularJS? Example : <table ng-controller="tableController"> <tr ng-repeat="totaldivs in parameters"> <td ng-repeat="divId in ...
0
votes
1answer
9 views

Multiple controllers in angular

Hello some pleeeease help me with this. I am new to angular. I want to apply both controllers to my table. These two controllers are created under different modules. The module is from npm install. it ...
0
votes
0answers
14 views

Why am I getting “The 'Access-Control-Allow-Origin' header contains multiple values '*,*,*', but only one is allowed”?

Locally, my Angular 1.x web app has no problem communicating with a RESTful API I have running on my machine. However, when I launch the API and web app into production, I get the following error: ...
0
votes
0answers
8 views

Working with Angular, triggering modals from peristant/state driven navigation

In my web application I am building I have navigation that is persistant. I am wanting to use ui bootstrap to give me modals etc within a angular enviroment. I am struggling to understand where the ...
0
votes
0answers
9 views

Firebase InitializeApp in Angular Typescript

I'm attempting to initialize my angular (typescript) app to use firebase. I have A FirebaseService class that has a method to initialize the app, i.e., import {Injectable} from "@angular/core"; ...
0
votes
2answers
34 views

How to define ruby code inside a haml file present in javascript folder

For my project, I am using Ruby on Rails and Angular and I have a haml file present in /project_name/app/assets/javascript folder. I want to call a ruby class from the haml file but unfortunately I am ...