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 apps are also frequently known as Single-Page Applications.

learn more… | top users | synonyms (2)

1
vote
6answers
24 views

ng-controller ng-model not working in angular js

im newbie in angular js. i already follow the instructions. first im using ng-init directive to search data. i still using static data for this case. before i jump into combining it with laravel, i ...
1
vote
0answers
23 views

Angularjs $scope in controller. How to get id?

Pease help me with the controller. The rails application page has selects: Group of systems and systems. Systems have equipment, systems group have systems. When I select a group of systems, I want to ...
0
votes
0answers
23 views

Why the variable is undefined in the method but it is not in the constructor in Typescript

I'm developing an application using 1.4.9 Angularjs with Typescript. I have a controller which have the testManagementService service injected, the testManagementService variable is an object in the ...
1
vote
0answers
20 views

How can I make a recursive promise with $q

let's say I have this rule: var count = 0; function isCountFifty() { count++; return 50 === count; } I want to perform isCountFifty() 50 times and each time put a $timeout 0 before the next ...
1
vote
0answers
12 views

How I am Create BreadCrumb with angular js from MVC?

Hi I have AuthUser menu list and when click my whichever menu, page will be opened I want to create breadcrumb clicking controller-action page. Like this ; I have as follow Menu List = Home ...
0
votes
0answers
2 views

How Facebook linting scrapper work, and what are it's expectation from my web site?

a short story, I bought a new domain, and before I publishing it I used the free hosting of kissr then I couldn't be able to share the url at Facebook as it seems Facebook dosent trust any thing at ...
0
votes
3answers
23 views

Passing Angular Expression to a function

I'm new to AngularJS, I was trying a code with ng-repeat but got stuck because I need to pass the angular expression to a function but it is not working below is my code: HTML code <div ...
2
votes
1answer
12 views

Error: this.getToken is not a function

I have a factory that returns 3 functions: setToken, getToken, isAuthenticated. The first two functions are predefined, and the last one calls the getToken function, using this.getToken. When ...
-1
votes
4answers
30 views

why my angular code is not working?

i just starting to learn angular. i wrote this simple code and i don't understand why i get wrong result on my brother the result i see on the brother is the text "{{helloMessage}}" and not "Hello ...
1
vote
1answer
12 views

Angular Maps - get id promise?

In a controller, i want to get the map (Google) on the page, set the map id to a variable, and then use that map id, other places in the same controller. I have a snippet like this; var map; ...
0
votes
0answers
11 views

$resource not getting passed to controller - AngularJS

I have been trying to use an external API to get weather data using $resource, I have been able to get $resource all set up for searching by zipcode, city, and coordinates. When I pass in those ...
1
vote
1answer
13 views

Testing angular service that is also a promise

I'm working with browserify to bundle up an angular service. I'm using jasmine to write tests for this service, which is defined like: angular .module('Client', []) .factory('client', ['url', ...
1
vote
2answers
24 views

How to pass value in select method in AngularJS

I have one problem in AngularJS. How to pass list value in html select method Here is my code, app.js $scope.subcategory=function(){ var query = "SELECT unit FROM Length;"; ...
0
votes
0answers
7 views

stop style validations from Angular-auto-validate plug-in

I am working on an angular application where we are using this [Angular-Auto-Validate] plug for form validations. This plug-in works automattically with all type of form validation which is quiet easy ...
0
votes
0answers
17 views

AngularJS 2 - inner property data binding - EXCEPTION: TypeError: Cannot read property of undefined in

I am working on a AngularJS 2 app using Typescript. I am facing a problem where I cannot access a property defined in the Typescript class in the HTML page using data binding. I have included the ...
0
votes
0answers
17 views

CORS issue when registering

angular.module('wwwApp') .controller('RegisterCtrl', function ($scope,$auth) { $scope.loginForm={}; $scope.loginForm.email=''; $scope.loginForm.password=''; ...
0
votes
1answer
18 views

Why does the scope value not get set when testing?

I have created a unit test for my directive with angular 1.4.4: angular.module('myApp', []) .directive('uiList', [ function() { return { scope: { ...
1
vote
1answer
27 views

How to get promise of api call without writing any custom service?

I want to get promise of asynchronous call without writing any Service. I have written some api to get data from back-end in javascript, but following code is not written in any service. I want to ...
-4
votes
2answers
23 views

Server side rendering vs client side rendering and how does web sites used to work before angular

Im kinda new to the whole web applicaiton , and web sites world, but i started to programming and build my own web , using angular and i feel very comfortable with the idea of client side rendering , ...
0
votes
2answers
46 views

How to get index of a key value pair

var myObj={ age: null, anothercolumn: null, caseNum: null, casecount: null, casecountfgfg: null, city: null, country: null, county: ...
0
votes
2answers
19 views

checkbox directive using angularjs

I am trying to create a checkbox directive with angularjs.The code is here in JSFIDDLE It works fine only with ng-model and text. But if i add ng-true-value and ng-false value, it throw error as ...
-1
votes
2answers
14 views

How to navigate to a cross domain web page through ajax call?

The requirement of my application is to navigate to a cross domain page upon logging out. As probably CORS is not set(error: no Access-Control-Allow-Origin header is present) in the cross domain app, ...
0
votes
0answers
13 views

Saving an image to database (Angular js and Spring MVc)

My front end Looks Like: <form method="post" enctype="multipart/form-data" action=".../user/doUpload"> <input type="file" name="file"/> <button ...
3
votes
1answer
14 views

Toggle table using ng-show expr leads to digest iterations limit breach

Jsfiddle for my code is here. There is a notes table with a toggle button to show or hide the table at the end. Background color for each note is randomly selected from a constant list of colors. ...
2
votes
1answer
19 views

ui-route resolve not working

My Application needs a some basic data to start. That's why i created a service and I am using it as model for that common data so that it can be accessible to all the controllers. I am trying to ...
0
votes
1answer
23 views

angularjs page navigation not working properly

$stateProvider .state('app', { url: '/app', abstract: true, templateUrl: 'templates/menu.html', controller: 'AppCtrl' }) .state('app.search', { url: '/search', ...
0
votes
1answer
20 views

http post and get service

i have a service as follows angular.module('starter.service') .factory('authService', function($http) { var service = {}; service.GetByUsername = function() { return ...
3
votes
1answer
32 views

Referencing to the value of an object inside angular {{ }} html markup

I'm in AngularJS 1 and I would like to show the value of the element I'm displaying, by referencing to the value of an object that has for key the value of the element. Currently my implementation is ...
0
votes
1answer
10 views

Can I include 'ui-view' inside and 'ng-view' partial page?

I'm just assigned on a SPA (angularJS) project where view routing is maintained with traditional ngRoute. For now I'm not allowed to move all the routing to state based 'UI.Routing' but they permits ...
0
votes
1answer
14 views

Push index into different variables by $scopes from different controller

I have some problem to push my input from my form there is some code lines in the below where the error detected I also have recreated it on CodePen $scope.dish.comments.push(Object.keys{rating: ...
0
votes
0answers
16 views

Spring Security 4 and Angular login authentication

I've a problem with seend good post to login authentication. This is my security configuration: @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests() ...
0
votes
0answers
5 views

Karma-Jasmine with AngularJS realtime project

I have gone through several tutorials but none could really help me out. I have also read through the documentation, which is easy for beginner test cases like to test for an array/string, etc. But i ...
0
votes
1answer
26 views

Angular js directive call with controller data binding

view <star-rating ratingValue="ratings" readonly="true"></star-rating> <div><strong>Rating 1:</strong>{{ratings}}</div> Controller app.controller('ProductCtrl', ...
0
votes
2answers
20 views

How to create simple UI tree structure using JSON data

In JSON Description field is empty it should be created a root element and placed to top of the list. If description filed is not empty the description name should be created folder name and title ...
0
votes
1answer
20 views

Error: [$parse:syntax] when using ng-class

I have been following a pluralsight course called Creating Apps with Angular, Node and Token Authentication, and am writing my own custom alert messaging. Basically, what I want to do, is to add ...
0
votes
1answer
30 views

Issue with drop down menu and tabs in angular

I am using MDL tabs with angularjs. The Tab definition is: <header class="mdl-layout__header"> <div class="mdl-layout__tab-bar mdl-js-ripple-effect"> <a ...
0
votes
1answer
25 views

Two-way databind on a forEach?

I have an object of products. The products i get from a resource (Product), store in a factory (productsStore), and iterate through in a controller. In another controller, i want to either empty of ...
-2
votes
0answers
11 views

HDFS Quota Management [on hold]

I am supposed to develop a project for 'HDFS Quota Management' The details are as follows: 1. The user should be able to fill in a form with all the project details and the Quota mentioned 2. Once the ...
0
votes
2answers
12 views

Need to display output in json and it to other server say “www.hashserver.com” but using angular

This is the code. I don't know what is wrong with the code its not working. I guess there is some problem with header defined but syntax is correct. there is no-db(database) <script> ...
0
votes
1answer
9 views

Angularjs plugin installation error

Cannot complete the install because one or more required items could not be found. Software being installed: Tern Toolings 1.1.0.201511082254 (tern.eclipse.ide.tools.feature.feature.group ...
0
votes
1answer
23 views

remove directive by unique id angularjs

i have simple directive that create a text, after click to add buttom. and after click to each directive remove and destroy directive properly. but i need delete all directive after selected. ...
0
votes
1answer
12 views

Angular1 to angular2 directive conversion

I had this directice in angularjs1 now i want to convert it into angularjs2 angular.module('mobApp.services'). directive('googlePlaces', function(ShareObjectService){ var ...
0
votes
1answer
19 views

how to calculate two textbox values of a gridview items template text box values using Angular js

i want to calculate two text box values and show the result in another text box within a gridview. The gridview control has 3 columns: qty, unit price and total. Total column should auto calculated ...
3
votes
4answers
46 views

Angular not updating template on scope change

I am trying to update my template when the date in the input box changes. My inputbox html is: <div class="col-md-4 pull-right"> <input type="text" id="id_date" class="form-control" ...
0
votes
2answers
20 views

Angular scope variable is empty in another function that fires on an event

Service angular.module('tested-user') .service('tests', function($http, $q){ this.getTests = $q.when($http.get('http://localhost:3000/tests.json'));}); Controller ...
0
votes
1answer
23 views

Angular js directive not compiled data scope

Here I am trying to show data on rightClick . I created a directive for that. but data was not bind correctly it shows like {{data}} . How can overcome this jsFiddle (function() { var app = ...
0
votes
2answers
14 views

List the object properties of array list within an array list by AngularJS ng-repeat attribute

I have a following JSON data [Beds = [ ElectricHospitalBed = [{name: 'Multifunctional electric hospital bed', code: 'IHC B/E 1001'}, {name: 'Multifunctional electric hospital bed', code: ...
0
votes
0answers
14 views

Trouble using upstart to run simple node server

I'm trying to run a simple node js server on digital ocean using this tutorial which I have successfully done before. When I run node server.js my project loads on the ip perfectly, but after ...
1
vote
2answers
19 views

Is there a way that I can fade from one screen to another with AngularJS and ui-router

When I change from one state to another some of the transitions seem very fast. Is there a simple way that I can make my screen transition with a fade out and fade in. I'm not thinking just even a ...
0
votes
2answers
16 views

Angular.js app cousing inifinite digest loop within ng-repeat and makes site unresponsible

I am having issue with digest loop and don't know how do I handle this thing in such a way that does not bring the site in unresponsible state. My code looks as below: <div ...