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
0answers
7 views

AngularJS authentication using localStorage

I have created an angular application where I'm using jwt for authenticating every api call to server. At client side I'm setting loggedIn to true in localStorage once user log in. And then I'm using ...
0
votes
0answers
10 views

Inline template of AngularJS does not work with XHTML

I am puzzled about a behavior of inline templates of AngularJS with XHTML. <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" data-ng-app="app"> <head> <script type="text/...
0
votes
0answers
14 views

Getting error while trying to login using Node.js and MongoDB

I have an issue. I have one login pannel when i am trying to login it by right username and password using Node.js and MongoDB its throwing the following error. Error: cyclic dependency detected ...
1
vote
2answers
15 views

Scope function calling on DOM change(two-way data binding) angularjs

<!DOCTYPE html> <html data-ng-app="app"> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script&...
0
votes
2answers
12 views

Ionic 2 how to toggle ion-header size

Here is the basic code I have: <ion-header> <ion-navbar> <ion-title align="center" (click)="somehowToggleExpand()"> Some really really long text here... </ion-...
1
vote
1answer
24 views

AngularJS view does not change after link is clicked

The initial template loads just fine, but when I click on the link inside of purpose.html to load the new view, nothing happens, although the address in the browser changes. No errors appear in the ...
1
vote
1answer
14 views

include data in base64 before sending to webservice

I am creating a web app in mvc-5 in which i want to convert (pdf,word,excel,images) into binary data and then insert the data into database $scope.savefunction = function () { var f = ...
2
votes
4answers
34 views

Issue with ng-repeat when response is object

var responsePromisecom = $http.get("restapi calling"); responsePromisecom.success(function(data) { console.log(data); $scope.items=data.platform.record; }); ...
1
vote
1answer
25 views

Angular POST to API doesn't pass data

So I am using makoframework and AngularJS for my project and currently having some problems. So in my table customers, the customer_name field is not nullable. My current code where I get all the ...
-1
votes
0answers
15 views

AngularJs: Validate directive elements from a form on the main page

My question is about handling client side validations for a large Angular app. I have a big SPA app with different components which includes reusable components like zip control. Now I can integrate ...
0
votes
0answers
8 views

install angular typings global

So I'm running typings install dt~angular --global --save However I receive an error "Attempted to compile 'angular' as a global module, but it looks like an external module. You'll need to remove ...
0
votes
0answers
10 views

files are not storing in local using ngfileupload

I am trying to upload files using Node Api on server and i m using ngfileupload angular Module to handle image on front end. below is my code: app.controller('MyCtrl',['Upload','$window',function(...
3
votes
1answer
22 views

classes are not taking action on other pages in angular

I'm using ngRoute in angular. The routing works fine, but page 1 and page 2 are not being styled. In my css file I'm just simply changing the background color for testing. <!doctype html> <...
2
votes
0answers
18 views

how to toggle sidenav and content in Angularjs

I'm new to Angularjs and I got a project on it, but here's where the problem comes, am planning to have a toggle button, when the page loads the sidenav should be opened, and when I click on the ...
2
votes
2answers
44 views

Can someone explain this piece of angularjs directive code?

I come from stricter languages such as Java, C#, C++ and have been using this code to read file into textarea without understanding how it worked due to time issue. Now I'm trying to learn directives ...
0
votes
0answers
5 views

Cordova resolvaLocalFileSystemUrl() cannot async for loop within

Here is my list[] var newList = []; var list = [ { Category: Souenir, Image: http://domain.com/souvenir.jpg }, { Category: specialsouvenir, Image: http://domain.com/specialsouvenir.jpg }...
-2
votes
0answers
12 views

Cross Domain Iframe [on hold]

There is a web page with 3 forms. Starts with page 1 with form then once you submit it goes to page 2 with form etc. I want to put these forms on a different webpage. I was able to use iframe, but ...
3
votes
1answer
37 views

Angular JS isNumber on ng-switch-when not working

I am new to Angular. I am trying to do switch the div based on some condition : <td> <div layout="row" layout-align="start center"> <img ng-if="row.pin" ng-src="{{...
1
vote
0answers
35 views

Angular-translate: the value of {{'HOME_LINK' | translate}} is HOME_LINK

I am trying to make an internationalization for my current project with angular-translate.js and angular-translate-loader-static-files.js, but now I faced a problem that the translation does not work, ...
-8
votes
0answers
23 views

Trying to Write a RESTFUL API for my mobile application [on hold]

developing a mobile application for inventory management system . i need a tutorial on how to create RESTFUL APIS i have little knowledge of PHP i am building the application with IONIC cordobva and ...
1
vote
1answer
36 views

How to select the DOM element from a querySelectorAll NodeList to apply focus()?

See EDITS below for most relevant new information. Within an angular directive, I have an element that is a div. I am searching for descendents that are inputs and grabbing the first one to apply ...
0
votes
1answer
18 views

how to pass value from dropdown ng-change event

i want car_id how to get car_id from dropdown and pass to ng-change event please help me <select ng-change="carsCtrl.ok(car_id)"> <option ng-repeat="item in carsCtrl.current_job....
0
votes
0answers
25 views

View doesn't show Controller's data

I have 4 files, View, a Module, a controller and a factory : Module : project.module.js (function () { 'use strict'; angular.module('BlurAdmin.pages.projects', []) .config(routeConfig); /** @...
0
votes
1answer
15 views

AngularJS ng-model not bound to Kendo UI dropdown when datasource data not in range

I'm developing a complex application using angularjs vs Kendo UI. Here is the simple view: <div id="example" ng-app="KendoDemos"> <div ng-controller="MyCtrl"> <h4>...
0
votes
1answer
20 views

No graphic displayed using ng-include in view

I am using angularjs and ng-include in in the view. I need to create a graphic using dygraph. I have 5 templates that show or hide when I click one button. When I click the button ng-include load a ...
0
votes
2answers
23 views

Update template var in angular 2?

New to Angular2. My template shows connected as false when I startup my app. Then the console logs connected to socket.io but connected still reads false in my template. How can I set things up so ...
0
votes
1answer
22 views

Locate a certain date in the last year within a time range

I have an unknown range of days (based in two inputs from a calendar), Eg: it may start January 5 - 2009 and end November 19 - 2015. This gives me around 2,509 days. I need to locate a fixed date (...
1
vote
3answers
33 views

AngularJS : Pass data from one view to another with in same controller

Summary : I have a form in view(first) of my angular application and on success response from the ajax call on submit it redirects the user to the view(second). There is only one controller for the ...
1
vote
1answer
18 views

How to separate angularjs files without using global scope

I've seen this post AngularJS best practices for module declaration? But I am still a little confused about the best way to declare and separate angularJS files for modules, controllers, services etc. ...
1
vote
1answer
8 views

Component copies previous object instead of creating a new one from given pattern

Im working on angular 1, creating a Component which will have 2 buttons ADD and Remove. On ADD click it should push a new object to the array. When i click on ADD the row is created correctly, but if ...
0
votes
0answers
11 views

Nativescript with Angular 2 on Android, how to close my app?

I would like a button. When you tap the button, the application closes, and go to home screen. Not needed to really close the app, just go to home screen. How can I achieve this?
0
votes
1answer
16 views

Node.js independent socket sessions

I am quite new to using Node.js so please excuse my ignorance :) Right now I have a web app which uses Node/Angular/Express in order to call C++ functions from a DLL on the server, and return the ...
0
votes
0answers
23 views

Populate route params with resolved data in angular ui-route

Give the following code: $stateProvider .state('app.users', { abstract: true, url: '/users', templateUrl: 'views/users.html', resolve: { userId: Users =...
0
votes
1answer
27 views

Angular jqLite .find() will not return any inputs?

EDIT: So it seems to be an issue with selectors? Does jqLite not support selectors or some reduced version of them? find('input') and find('button') will return results but if I try to filter it with ...
-1
votes
1answer
28 views

ng-show is not producing expected output after replace in Angular

Forgive me if something similar has already been asked. I am making a web app using Angular JS 1.5. In my controller shown below, I have requested an array of JSON objects and stored them in $scope....
1
vote
0answers
17 views

Nodejs - NPM Unable to install Angular CLI

I want to install the Angular 2 CLI on Windows (win7 & win 10). I tried using first the Node 7.3.0 ("node-v7.3.0-x64.msi"), then also tried "node-v6.9.2-x64.msi". In steps, I did: Open CMD run as ...
0
votes
0answers
15 views

Display recent item in MongoDB collection in AngularJS

I have a MongoDB collection that collects sensor data from an Arduino published via MQTT. I would like to create an AngularJS client page that displays the most recent sensor data. Is this doable?
5
votes
1answer
36 views

CORS issue for Angular + Laravel project

I am having trouble to create web app using Angular which is accessing to RESTful API built by Laravel. Although I have created middleware which passes correct headers, it does not work. class Cors { ...
0
votes
1answer
17 views

Filter next dropdown values based on already selected value

I have a dropdown with four options. I select the first option as 'John (1)' and add a row. Now the next dropdown should only show me three options in the dropdown ie, it should exclude the value of ...
0
votes
1answer
21 views

Get first and last enabled item

I would like to get the first and last enabled item or where disabled = false from the object. I have tried: $scope.firstEnabled = function(obj) { for(var i = 0; i < obj.length; i++){ ...
0
votes
1answer
7 views

Angular Scope Not Work SDK Facebook

.controller('MainController',function($scope,$rootScope){ $scope.Name = "Loading"; // Work $scope.Email = "Loading"; // Work FB.getLoginStatus(function(response){ if(response.status === '...
0
votes
1answer
14 views

angular ionic - form submit with button that is not located within the form tags

I’m using a library called floating-tabs.js which is being used to create floating navigational buttons: here’s an example of what the layout looks like <floating-tabs> //this is my button ...
0
votes
1answer
10 views

Glitchy ng-animate fade on ng-show/ng-hide

So I have a set of cards that after five seconds fade from a loading cog to some dummy information. I'm using ng-show and ng-hide to move the cog to the info. My issue is that as the fade happens ...
-3
votes
2answers
24 views

Http services in angularjs [on hold]

Does http post service contribute in creating a todo list. I need to save the list of tasks as a file in computer whenever the user hits the enter.
0
votes
0answers
18 views

Adding AngularJS 1 with TypeScript into existing Asp.Net Mvc 4 web application

Having Asp.Net MVC 4 Web Application. By adding ng-app and ng-view in one of MVC Views I was able to embed AngularJS 1 single page application in it. Customer hard requirement avoid using Angular 2. ...
0
votes
3answers
22 views

Ionic angular nested ng-repeat filter, hide title if empty

I have a nested list with a filter , it has days and activities. objects looks like : days:[ {name:"monday", acts[{title:"Zumba",start:"10am",end:"11am"},{}..]}... ] Filter works good but I'd ...
1
vote
3answers
29 views

How to extend each object in collection with new property with value of funtion result

Suppose my app has array of object type A: { prop1: 11, prop2: 2222 } How to add to each object of array new property which will contain value as the result of function. I know I can do it ...
0
votes
0answers
55 views

Preflight has invalid HTTP status code 500

I have made a RESTful API and when testing it on localhost it works fine, now I've added it to our IIS 8 and now I recieve the following error XMLHttpRequest cannot load http://egluit.dk/api/call/. ...
2
votes
1answer
24 views

How can I use one service to update both the parent and child scope in AngularJS?

I am trying to implement services more in my code and would like to use only one service that updates data in both ParentCtrl and ChildCtrl at the same time. I have read that services are singletons ...
0
votes
0answers
17 views

How to add text to canvas with PhysicsJS

I'm doing a simple project with Physics.JS and I want to be able to add text to a PhysicsJS World. I looked in the documentation but I couldn't find something that can allow me to do such thing. Is ...