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
1answer
13 views

ng-repeat inside ng-repeat not working in angularjs app

I am using two ng repeats but the second one it doesnt display. Let me show you my view : <div class="post" ng-repeat="user in users | orderBy:'username':false" ng-class-odd="'odd'" ng-class-...
0
votes
0answers
10 views

AngularJs Ng-repeat - debugging tce loop control variable

I was having trouble with an ng-repeat, where values which I expected to be set are not. So, I added a few lines of debug, showing some values in the HTML of my current view. Given <div ng-hide="...
1
vote
2answers
6 views

Browser refresh is not working on press of enter in firefox

I have an application built using angular js with angular ui router. Below is my application URL http://localhost:8082/sample/#/test/1 On click of enter in the browser address bar, the page refresh ...
0
votes
1answer
10 views

CORS AJAX-request fails even though the correct headers are specified

I am trying to send an AJAX-request from a page hosted on Github Pages (with https) to a php script hosted on a different domain (also https). This is the code I am using in my AngularJS controller (...
0
votes
0answers
14 views

Change in route param doesn't updates the view in Angular

So I have this configuration for my single page app's views: app.config(function($routeProvider) { $routeProvider. when('/product/id/:id', { template: '<product-details></...
1
vote
0answers
26 views

Reducing code complexity to increase readability and get conditional logic working

I am trying to reduce code duplication in my controller which I have mocked up to test both on my browser and device. The core functionality works at the moment, but it currently violates the DRY ...
0
votes
0answers
10 views

$q injection does not work

Using Ionic 1 I try to use $q in one of my services: angular.module('app.services', []) .factory('BlankFactory', [function(){ }]) .service('UserService', ['$q', function($q){ ... // in one of ...
1
vote
1answer
8 views

Angular / nodejs : How to ng-repeat all products from database for an online shop? controller etc doesnt work

I am using node for the backend and angular for the frontend and am trying to display the products, however, nothing is being displayed. For the database, I am using Postgres (Sequelize) (everything ...
0
votes
0answers
6 views

OneSignal push notification handle in angularjs controller

i have problem with handling OneSignal pushNotification in cordova app. My purpose is open display page from any controllers, every page has specific controller. Whenever notification come will do ...
0
votes
1answer
15 views

update javascript object`s method

I have this declaration: $scope.showAlert = function() { var alertPopup = $ionicPopup.alert({ title: 'Notification', template: '' ); $timeout(function() { ...
0
votes
0answers
3 views

trying to do autocomplete with jquery ui

i am trying to use this information as the source for autocomplete. i am getting the response object just fine I am just having trouble getting it in the right format. I am tied to the "Name" which ...
0
votes
0answers
14 views

Angular throwing cryptic error, can't figure out root cause

I'm developing a CRUD SPA with UI Router. Here's the state: .state('admin', { url: '/admin/', templateUrl: 'ui/admin.html' }); The link: <a ui-sref="admin"><span class="...
0
votes
1answer
15 views

npm install shows command for module installed, but no new files

I added rx-angular to my npm package, and when I installed it locally, it grabbed the dependency for rx without any problem. When I went to release to production, it seems to sort of work, but not ...
0
votes
0answers
13 views

ng-disabled form validation not working properly

I'm starting with angular and I searched in other questions, but didn't find what my problem is. I have a form with a button using ng-disabled and even when all fields are valid the button remains ...
0
votes
1answer
13 views

resolve mdDialog promise before animation start

Can I config the mdDialog to resolve the promise before the close animation ended. Currently the time between the click on the Ok button and the time that the resolve function fired is ~300ms and it's ...
0
votes
1answer
7 views

post a string xml to ASMX service by AngulaJS

I have a string data <Data><ThuChi SoTien="" NgayThuChi="" LoaiThuChi="" GhiChu="" IdThanhVien="" /></Data> I want to send this data to webservice ASMX by Angualar JS, but I don't ...
0
votes
2answers
16 views

typescript: print only string from variable

Coding ionic framework 2. I have a locationtracker, that is giving me the exact latitude and longitude of a person. I want to have ONLY the string printed from the storeArray, and not the number ...
0
votes
1answer
20 views

Where is data in angularjs http post request?

I'm not sure if I'm just being dumb but here goes. I'm trying to send data to my server through a angularjs button which runs a function with HTTP post request. However I'm not sure where the data is ...
-1
votes
0answers
16 views

ExpressJS pass variables to Angular

I have some text in the form of some JSON that I have been able to pull from Steam's Web API using my server written in ExpressJS/nodeJS. This JSON is stored in a variable. What I am trying to do ...
0
votes
0answers
21 views

Angular upload - error 405 Method Not Allowed

I am trying to upload a file with angular and I am getting post result 405. After researching in internet I found out that this is a response when the method is not allowed. I can not figure out why I ...
0
votes
0answers
15 views

How to use ng-sortable in nested directives

I want to use ng-sortable in a nested directives. I always get the error: Error: Multiple directives [collection, ngSortable] asking for isolated scope. Is this even possible ? <!doctype html&...
0
votes
0answers
10 views

Blur Admin sidebar menu doesn't appear?

I want to implement login system on my angular app using Blur Admin template. I know there is auth.html but what I want is custom. My idea is when unauthenticated user open app page, my app will ...
0
votes
5answers
20 views

What helps store the inputted data on a backend page in HTML?

So I am new to web development and all I've learnt so far is how to write HTML and CSS to make web pages and forms. I'm specifically looking for a language that will help me store the data that is ...
1
vote
1answer
116 views

Angularjs: Remove # from url error: 500 Internal Error

Hello I removed the # in the url and it's good, but as I refresh the page I get an error: 500 Internal Error The server encountered an internal error and could not complete your request. I ...
0
votes
1answer
11 views

AngularJS 1: $injector:modulerr error

Please help me to understand where's the problem. HTML: <!doctype html> <html ng-app='ShoppingListCheckOff'> <head> <meta name="viewport" content="width=...
2
votes
2answers
27 views

Command a specific child component from parent in AngularJS

I'm using AngularJS 1.5.8. I have "myParent" and "myChild" components. In my view, i've 1 parent and 2 children inside that parent. So my question is: I wanna have instances of children "myChild" ...
0
votes
1answer
22 views

javascript save file from http response (Web Api HttpResponseMessage)

So i have a problem when i tried to save file from server response. When i try to download the file from url in my browser all work but when i tried to send request from the clint side the file is ...
2
votes
1answer
20 views

Auto click on button like in ifarme when page load

If I wanted to auto-click a button element in ifarme how would I go about this working ? function autoclick() { document.getElementById('u_0_4').contentWindow.document.getElementById("u_0_5")....
0
votes
0answers
8 views

Should i put my Angular Files in same Jee Project?

I'm New To Angular World , I start with some example to use Angular 2 with Rest java Application ( using jax-rs ) all these example use 2 project , the first project is a JEE project and the second ...
0
votes
1answer
20 views

Can't get this simple ng-submit to work

I'm learning AngularJS by working through this on YouTube tutorial and I've hit a block on the 14th video with the ng-submit directive. See code snipit below, when you fill in the form at the bottom ...
1
vote
0answers
9 views

AngularJS on old WebForms

I need help working with Angular 1.5 on an existing old website (WebForms/Umbraco 4). GET works C# public class MyController : ApiController { [System.Web.Http.HttpGet] public string Test(...
-2
votes
1answer
24 views

Unable to connect the html files with angular

`I am new to angular and unable to get the output of Json File. This is the link to code https://github.com/sumitpatel93/http_service I get output as Names and ages of the customers in area: {{ ...
0
votes
1answer
8 views

ui router change abstract parent url params

Below is how the ui-router state provider has been set for our project. Showing below a part of it. $stateProvider .state('Parent', { url: '/mainpath/:Id', templateUrl: getViewUrl('Main....
0
votes
0answers
10 views

How can we toggle (select and deselect) ionic item-checkbox from angular controller?

I am deleting events from the controller and want to be able to deselect checkbox from controller logic which is not happening currently. Below is the checkbox I have from an ng-repeat loop. <...
0
votes
1answer
14 views

Angular 2 cannot find module after npm install

I have an Angular 2 app, and I'm trying to install angular2-autosize component in it (https://github.com/stevepapa/angular2-autosize) as per the instructions in the README of the package. I run below ...
0
votes
0answers
23 views

angularjs/routing doesnt navigate to sub pages

I have created a simple application in angularjs . The main page have three links when I click on one of the them its content should appears . but nothing happened when i click . This code of the ...
0
votes
1answer
13 views

How to print barCode using javascript or export barCode in pdf

I have Generate barCode in my application.There are some problems to print barCode and also export pdf file.In this case barCode is not showing in print or pdf file.I have Generate barCod by directive ...
0
votes
0answers
14 views

Exposing passports “isAuthenticated()” to the view

I am building a MEAN-stack webapp using login through OAuth 2.0. I want to be able to hide/show content in the view depending on if a user is logged in or not. Doing this in the routes is easy since ...
0
votes
1answer
10 views

Attach Pdf to email composer in ionic

i am trying to attach the blob pdf file to email composer . But it is not working for me. function createPdf(reportData){ return $q(function(resolve, reject) { var dd = ...
0
votes
0answers
27 views

Run webserive in angular which is running successfully in postman

I have a url which is working fine in postman and I am getting response successfully. But when i try to run in angular using http I am getting an error like below. var req = { method: 'POST', ...
0
votes
0answers
41 views

Make APIs accessible to my front end

I have created a few APIs. I want them to be accessible to front end services. Very flat hierarchy of folders: server.js index.html ... server folder - controller.js Now I have started nodemon ...
0
votes
0answers
11 views

AngularJS $resource save success function not getting data

I am building an application with Rails 5.0.0 with my back-end (api-only mode) and AngularJS as front-end. While testing on my localhost API in POSTMAN, I hit the POST endpoint - http://localhost:...
0
votes
2answers
27 views

How are angular .service()'s singletons and data can be shared across controllers even though they are new'd when instantiated

Please see the below plain js code. var newable = function() { this.name = 'First'; this.setName = function(name) { this.name = name; } this.getName = function() { return this.name; ...
2
votes
1answer
7 views

How to avoid `modal-backdrop hide` insert to ionic cache?

I encounter the problems of modal-backdrop hidekeep append in my ionic view. I need to call modal for my code. In my case, if the students click to the button check the answer then the modal of ...
1
vote
0answers
20 views

Change the type of field in the project with angularjs

I want change the Instead, the type of field column Size New Template in link: http://plnkr.co/edit/yfU1zmkRXjrZwJAG5PS4?p=preview In the file tree-grid-directive.js: (function () { angular.module('...
-1
votes
0answers
8 views

Angularjs - ngTable : get filter values

I have a ngTable in my view. How, in my controller, can I get the filter values of my ngTable?
1
vote
0answers
23 views

casperjs on my code not in separate js file

I need to use casperjs to solve cloudflare under attack http get request issue, to call Rest api from client app, I win to call it in casperjs module, but it runs from command line when put code in ...
0
votes
1answer
13 views

Angular 1.5 component updating parent controller thru ngRoute

I'm using ngRoute to create an Angular single-page app. Want to move to a component-based version. Problem is isolated scopes. I need access to main controller props and methods. Trying to use ...
0
votes
2answers
14 views

Angular resolve not working while bundling and minification

When i bundle the js files then resolve statement is not working in angular project. Below is the code app.js app.config(["$stateProvider", "$urlRouterProvider", function ($...
0
votes
0answers
18 views

Token based authentication vs cookie based authentication

i am reading the blogs to understood the token based authentication and cookie based authentication.In Token based authentication we can store the token . a).sessionstorage,b).localstorage,c)....