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

angular JS use front end or backend API sorting

I am using ng-table. Sorting is already included. What do you suggest. Use and let angular to sort and search or do a back end logic for that? How big is my table: 1000 rows or less ...
1
vote
0answers
5 views

Detect changes to ng-model in child component and pass the data in AngularJS

I'm creating a big component based angular 1.5.8 application. There are about 18 different components within a parent component. For this purpose, each components template has inputs which is a part ...
0
votes
0answers
13 views

Calling api with api key using angularjs

$http.get("https://api.sportradar.us/nba-t3/seasontd/2016/REG/leaders.json?api_key=xxx") .then(function (response) { $scope.allData = response.data; $scope.taskData = allData.season.type;...
0
votes
0answers
5 views

How to prevent closing of dialog when data updates fail

I started playing with ngDialog but I can't seem to figure out how to prevent the dialog from closing when an error ocurrs during data updates operations. ngDialog.openConfirm({ ...
0
votes
0answers
3 views

Login into a web service with Ionic

I'm new with Ionic + Angular. I'm developing an new android app and it has an Auth Service and my problem is: When I test the app on browser (Chrome) it works great, but when I try it on my android ...
0
votes
0answers
8 views

bundling angular-permission with webpack

I'm currently in the process of migrating an AngularJS (1.5.8) from a Gulp pipeline to a webpack pipeline. One of the dependencies we have is angular-permission. We're relying on the commonjs style (...
0
votes
0answers
8 views

AngularJS: Extending from abstract directive with no html

I'm trying to create something like an abstract directive that will be used by several directives with will pass some specific values, but I want to the 'abstract' one to do the work. I tried to ...
0
votes
1answer
7 views

Module angular-stripe is not available or Stripe must be available as window.Stripe

I have angular-stripe.js in my project(not sure where it came from someone else included it) an excerpt of which is below var Stripe = window.Stripe module.exports = angular.module('angular-stripe', ...
0
votes
1answer
14 views

Remove Directive From Dom using JQuery

In internet explorer, input type ="date" does not work and angular directive pitches in to show jqueryUI datetimepicker. But, In chrome, both are displaying , is there any way to remove the directive ...
0
votes
0answers
6 views

angular ng-table + API generic solution for sorting and paging

I am migrating from UI-GRID to NG-TABLE and I would like to know if there is any generic solution for posting to API when SORT or PAGING is executed? Something like this for UI-GRID: http://blog....
0
votes
1answer
18 views

Assigning Angular $http.get call object to variable

Okay so, first of all, I'm pretty new Angular. I'm trying to get all of my documents (a JSON object) from CouchDB using a $http.get call. The JSON object is basically a list of people, with an id, ...
0
votes
0answers
25 views

How to reveal JSON data in angular 1.x

everybody. I'm learning angular 1 now and I'm having some problem with json data. What I want to do is to get data from 'openweather' api (I've already done it, creating 'factory') and get data from ...
1
vote
1answer
11 views

Ionic 2 http.get() issue

I tried to make http.get() call with these two methods. First: getResults(){ return this.http.get('http://localhost/api.php') .toPromise() .then( data => data.json() ); } Error Shown:...
0
votes
2answers
9 views

array variable in a div tag replicates in all the other div tags in angularJS

the array 'ar' array in first #div1 is repeated in all the div. all other div have the common array variable name 'ar', i tried with different names. <body ng-app=""> <div id="div1" ng-init=...
0
votes
0answers
14 views

Accessing URL attribute of Router class directly gives incorrect path

There seems to be a problem with routes in Angular 2. It seems that accessing the Router’s class URL does not properly output the actual URL of the page. However, logging the whole Router object ...
0
votes
0answers
5 views

Ionic / Angular JS - Input fields not updating correctly after using Geolocation

I am building a new App using Ionic / Angular JS. In a specific app tab I am using geolocation to populate 4 fields (street name, street number, lat and long). Here is how my controller JS looks like ...
0
votes
1answer
6 views

Multiple abstract views does not work - Ionic

I have done this project with ionic where there are multiple abstract views one inside another. But it does not work, although I do it exactly like this post angular_app = angular.module 'starter' ...
1
vote
1answer
15 views

Custom chain filter in Angular

everybody! I've got a problem: I can't write filter in Angular used in a filter chain. I'm not familiar with Angular enough so I hope this is gonna be a a trivial mistake in my code. So, first of ...
0
votes
0answers
7 views

Looking to submit form data to HubSpot Form via AngularJS

I built a form via angularjs and I'm looking to submit that data to Hubspot Form's API. I took a look at the documentation and am not sure how to integrate this into my angular controller submit ...
0
votes
0answers
12 views

how to load json file to AWS S3 server without change it's correct format

I am doing reading and writing from/to AWS S3 server, when I load the json file from server, I am getting the formatted json, like this: { "layout": { "titleImageUrl": "http://*******/foodNetwork....
0
votes
2answers
13 views

AngularJS - How to Get TemplateUrl from Controller?

I'm trying to access the current template URL when I change states in the template's controller. The routes: lrdcom.config( function($stateProvider, $urlRouterProvider, $locationProvider, ...
0
votes
0answers
10 views

Indexing user query

I'm trying to add user search queries to an elasticsearch index for autocomplete. I'm using the JS API for ES like this in my searchService: this.indexQuery = function (searchTerms) { esClient....
1
vote
0answers
20 views

How to data bind directive that wraps an element in angular

I have a directive that creates a wrapper for an element. The problem with this is the "is-selected" class does not toggle based on the myValue value. I feel like it has something to do with how I'm ...
0
votes
0answers
16 views

How to avoid both elements from showing for a split second with ng-hide and ng-show in angular

I have page with two different selects, one shows times that a venue is open in the AM, the other shows times it is open in the PM. I am using an ng-hide and ng-show on the value of a different ...
1
vote
0answers
9 views

How to test applications that use long polling with Protractor

I am building an Angular app that uses long polling to receive fast updates whenever something changes on the server. I use $resource like this to fetch the actual data: appServices.factory('Data', ['...
0
votes
0answers
8 views

Protecting iframe src using server side rendering

I have to display a third party site, say site X, upon successful authentication from my existing APIs, as it is, on my web site. But due to certain reasons, I cannot afford to use an iframe, which is ...
0
votes
1answer
16 views

AngularJS Http get empty first time

I have this code PedidosService.getProductbyID($scope.listProductos.ProductID).then(function (d) { $scope.oneProduct = d.data.producto; }); PedidosService is the ...
1
vote
1answer
16 views

Sweet alert dialog with spinner in AngularJs

I am trying to display a spinner in a sweet alert dialog something close to Bootstrap modal dialog (http://jsfiddle.net/D6rD6/5/) The closest i could come up with is something like this : SweetAlert....
0
votes
1answer
26 views

TypeError: Cannot read property 'username' of undefined from Form Submit

I have a form being submitted, but I am unable to assign assign the form 'req.body' username and password properties to the database (no hash on the password, just trying to get a MEAN CRUD app ...
0
votes
1answer
12 views

md-chip can add duplicates if model already contains item

I have the following code: <md-chips ng-model="myModel" md-autocomplete-snap="true" md-require-match="autocompleteDemoRequireMatch"> <md-autocomplete md-selected-...
1
vote
0answers
12 views

Upload image within ng-submit form

I'm new to Angular.js and I would like to know how to upload an image within my ng-submit form. It works perfectly for the next based fields but with the file it only gives me the 'choose file' button ...
0
votes
0answers
7 views

AngularJS/Bootstrap library to implement Mobile Comparator

I want to implement a mobile comparator, wherein user first selects a few models he wants to compare and then when he clicks "compare", a window opens where user is shown the details of the models ...
0
votes
1answer
11 views

Assigning a function to angular ui-router `onEnter` doesn't work?

The following works. onEnter: function isAuthed($state, isLogin) { ... } But the following doesn't. function isAuthed($state, isLogin) { ... } onEnter: isAuthed($state, isLogin) Why? ...
0
votes
0answers
16 views

angular 1.5: factory to component

its possible to change the binding of a component from a factory in angular 1.5.8? (I want prepare a factory to display msgs when my http-interceptor caught an error 500) For example. Thats factory:...
2
votes
4answers
42 views

How can I cache an AngularJS directive that gets called repeatedly for the same user?

I have a user avatar directive that applies color to several paths in an SVG image per the user's preference. It gets applied to each comment in a thread that can be very long, and is compiled ...
0
votes
0answers
13 views

Dynamically update Ionic title

I use ng-repeat for showing content in my view like this: <ion-view view-title=""> <ion-nav-buttons side="right"> <button class="button button-icon button-clear ion-compose" ...
0
votes
0answers
7 views

Google Analytics Autotrack not displaying SPA page path

I'm trying to display the page views in Google Analytics using Autotrack for a SPA (Single Page Application). I was able to get the page path after # prefix before, but i'm not getting them now. Code:...
0
votes
0answers
7 views

How configure Gruntfile to get files on ocLazyload?

My folder structure is this. When I run "grunt build", generate the build, but, doesn't work when open "index.html", and show error "scripts.0d39b022.js:24 Uncaught SyntaxError: missing ) after ...
0
votes
2answers
31 views

AngularJS: how to get selected option value and send to controller

how to get a value from select (code) and send to controller in angular for is using in the this controller?? My select consumes a web service code: <div class="form-group col-xs-12 offset-xs-2 ...
0
votes
1answer
20 views

Angular application error in IE 11. Everything works fine in Chrome

I am developing an angular application. The application is working fine in Chrome but in IE( I am using IE11) I am getting the following error. Unhandled exception at line 2930, column 1 in http://...
0
votes
0answers
9 views

socket.io changing room in a chat app not working

Ok I am creating a pretty simple chat app. Users puts his name(no authentication) starts chatting in a default room. Rooms can be created by users which are then stored in mongodb and messages that ...
1
vote
0answers
11 views

GAE posting an array to the datastore with Python (One to Many)

Been workining with GAE for a few months. It's my first time working with One-to-Many relationships here. Everything has been posting all well to the datastore until I started with relationships. This ...
0
votes
1answer
9 views

Convert curl expression to angular $http command

I'm trying convert the curl expression to $http angular command. The curl expression is: curl https://ws.sandbox.pagseguro.uol.com.br/sessions/ -d\ "[email protected]\ &token=...
2
votes
2answers
28 views

Can't save http result to scope

I have a json-file defined and I am trying to load in one of my controllers. I am using a factory to fetch the data: .factory('myService', function($http) { var all_data = []; return { ...
0
votes
0answers
21 views

How to loop data in different views in ionic

I have five pages with different state. The first page contains object with the format { "good": { "good1": "good", "good2": "good", "good3": "good" }, "bad": { "bad1": "bad", ...
2
votes
2answers
15 views

Firebase storage getDownloadURL() doesn't return a working url

I'm currently trying to play around Firebase. But now I'm facing some problem with firebase storage... I tried to use getDownloadURL() method to retrieve the url of my images which stored in ...
0
votes
0answers
14 views

Angularjs datepicker max bug?

When I set the input type to date and set a max validation, the maximum date could be selected to the max date. It is OK. But when I choose the max date as input, it always shows invalid. It is no ...
1
vote
1answer
12 views

Angular2 rxJS HTTP Observable Interval - Do something while waiting

I have the following component that is subscribing to a service: this.nodeSummarySubscription = this.netStatusService.getNodeSummary(10000). subscribe( data => { this....
0
votes
4answers
33 views

Javascript Scope - can't access value outside of scope

I would like to access 'key' which happens to be a global variable after being returned from this.dorequest(). I get the key inside the if block but can't access it anywhere outside. Can somebody ...
0
votes
0answers
5 views

Angularjs ng-include in CefSharp Chromium

I am trying an Angular "ng-include" with CefSharp (Chromium), but with a negative result. My code for controller: $scope.helpTemplate = "views/help.html"; And the HTML markup: <div ng-include="...