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)

0
votes
0answers
12 views

Clear button is not wokring AngularJS

I need to clear filter if someone clicks on the clear button <form name="search" ng-submit="search(asyncSelected)"> Clear
1
vote
1answer
13 views

AngularJS UI Router linking to a State with URL Parameters inbetween the state

I've got some state routing like: .state. ('home', { ... }) .state('home.company', { url: 'company/{ID:int}', abstract: true, template: '<ui-view/>' }) .state('home.company.list', ...
1
vote
1answer
15 views

Passing complex object from Angularjs controller to MVC controller is not working

On Ajax call from Angular controller, i am passing a complex object as data. On MVC controller object has all null values. I have MVC view as given below, which will be the boiler plate for Register ...
0
votes
0answers
5 views

Socket.io events triggering multiple times on Angular.js view change

Warning: I am pretty new to coding and web development. I am making an angular application that uses socket.io to communicate realtime events on a node (express) server to other clients. The problem ...
-3
votes
1answer
14 views

I get “angular is not defined” error when run this html file

this is my html file: <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" ...
0
votes
0answers
29 views

Save data of an another controller

I have one controller, called Products and another called Colors. On the form of creation of new product I have an field (autocomplete) called "color". If user inserts anything in this field, the ...
0
votes
1answer
15 views

AngularJS Sum of ng-repeat column

I am trying to get the sum of each of my columns in a table that is using ng-repeat. I followed an example I found online, but it's loading 0 for the subtotal. Here's the filter I've got in my ...
0
votes
1answer
13 views

Angular : disable a text input

I have an input text which is disabled by default : <input type="text" ng-model="city.name" class="form-control" disabled ...
0
votes
0answers
10 views

Are their frameworks to test an html page + angular functions without running the application

I know you can use frameworks like Karma (Jasmine) to unit test javascript functions, and Protractor to do E2E testing, but I'm looking for something that can just test a specific page of my ...
1
vote
1answer
13 views

Registering AngularJS Service with ES6 syntax

I'm attempting to create and register a new service using the ES6 import/export syntax, but I'm not sure what the right format is. The only way I've gotten it to work is as follows, if I use quotes in ...
2
votes
1answer
18 views

ng-table inside a custom directive error “Cannot set property '$data' of null”

here my question: I am trying to build a directive in angular, which would use an ng-table inside. The problem is that input parameter tableData is initialized as an empty array initially because it ...
0
votes
0answers
5 views

Angular-Rails app Browser history navigating works not correctly

My application is using RubyonRails and Angular. My problem is: when im navigating pages manually - typing url`s and pressing 'Enter' (rails routes working) visiting for example /welcome, /about, ...
1
vote
0answers
11 views

Checkbox not changing state dynamically in material design and angularjs

switches and I want to control their states dynamically through angularjs controller. But it is not working as expected. I have the problem replicated on the following codepen. Can anyone help quick? ...
0
votes
0answers
8 views

How to show different links of web app in several pop-up windows under start page

As like the image,where 'Users' and 'Roles' are sub-menu of "Security"; I need to keep every page/link after being clicked under a common or start page.... as like of pop-up windows... Can this be ...
0
votes
1answer
14 views

POST Node/Express not working from Safari mobile

I have read other SO entries about issues with how mobile safari will cache POST requests. I have implemented what I "thought" was the fix on my express app, but still when I POST to my app (hosted ...
0
votes
1answer
10 views

Rails + Angularjs: Module 'ngResource' is not available

I am trying to incorporate some Angularjs code into a test application, but cannot make it work. I try to make a call/interaction with the database. Here's what I did: Installed the gem ...
0
votes
2answers
43 views

Handling multiple Ajax Requests inside another Ajax Request

I'm using angularjs' $http method to get multiple "parent" elements. In this Ajax Calls .success method, I have to iterate over the parent elements, and use yet another Ajax call for every parent ...
0
votes
1answer
33 views

Correct syntax when calling an AngularJS javascript function

I have a JS function in an AngularJS JS file defined below and I'm calling it. What would be the correct syntax when calling this function within the JS file itself because I need to do a hard ...
0
votes
0answers
7 views

AngularStrap Modal Factory - dismiss / confirm prompt functions

I am making a factory for controlling prompts when users try and delete elements. I am having trouble trying to figure out how either dismiss the action with the close button, or delete if they ...
1
vote
3answers
29 views

Angularjs not loading json files

I'm not sure why when i print the json file on a html page works, also from a button calling a function, but not inside of the javascript file. This a problem because i need to sort the data in the ...
0
votes
0answers
10 views

AngularJS: Auto-scroll to anchor point after state change

I am looking to have a user click a link on a page, this will trigger a stateChange and lead them to a new state. what I want to achieve is when the state is finished loading it then scrolls to an ...
0
votes
2answers
21 views

how to reuse a view that is rendered in the browser when i visit the same view next time, using AnuglarJS

I have been trying to understand this, searching in many sites. Here is something that want to achieve. In AngularJS, I have implemented the route, view and the controller. It is all working fine. But ...
0
votes
1answer
16 views

angular form validation issue- angular validation is not happening

My form is as shown below. But on click of submit button the form is submitting with out validation...I am using spring security so xhr call won't allow to redirect on another page from server(so I ...
1
vote
1answer
10 views

angular unit testing a directive with httpBackend

I am currently running into an issue where I can't get the directive to run on a tag. I'm new to unit testing and angular so please be descriptive of what I am doing wrong, or what I should look ...
0
votes
2answers
18 views

Angularjs: Error: [ng:areq] ResevationController not a function, got undefined

MainController.js (function(){ var eateryControllers=angular.module('eateryControllers',[]); eateryControllers.controller('MainController',function(){ var mainCtrl=this; }); ...
0
votes
1answer
20 views

TypeError: callback is not a function in AngularJS App

I'm trying to build my first angular app, I keep getting a error that callback is not a function when trying to save my factory into a service so I can use it for the life of the app. Here is what I ...
4
votes
2answers
25 views

Using expressions in ngModel in Angular.js

Giving the code inside of my controller: $scope.entity = { firstName: 'Jack', lastName: 'Bauer', location: { city: 'New York' } }; $scope.path = 'location.city'; How do I dynamically ...
0
votes
0answers
8 views

Angular-UI-Tree dragged element at custom position/offset

I'd like to have a custom position for the element that is attached to the mouse using angular-ui-tree. The default behaviour figures out the absolute position of the element in the viewport and ...
0
votes
0answers
12 views

How to trigger 'keyup' event in Angular unit test with Jasmine and Phantomjs

I want to test my directive, and here it is: function passwordMatch($timeout) { return { require: 'ngModel', link: function (scope, elem, attrs, ctrl) { var firstPassword = '#' + ...
0
votes
0answers
20 views

Change UI Bootstrap accordion group content by click a button in the previous group

I have this accordion: <uib-accordion close-others="true"> <uib-accordion-group heading="Action" is-open="true" class="text-center"> <div ...
0
votes
1answer
21 views

Going deeper in my http request will not show the needed data on the view

So building up on the previous question (Http request in service successful but not able to show in view). I need to go deeper in my http request to make a api call for a selected movie, like so: ...
0
votes
1answer
8 views

How to implement header bar on mobile views

I am building a Hybrid Mobile app with Angular 1.4x, Angular Material, UI-Router and Cordova. I am using UI-Router nested views to implement a global sidebar navigation view, but I have been adding ...
0
votes
0answers
7 views

Grunt Watch Reloading Issue (Netbeans 8)

I just started using grunt watch and noticed something strange when making changes to my AngularJS files: Let's say I make a change to /app/src/index.html. After I make that change, grunt runs and ...
2
votes
2answers
24 views

ng-repeat filter is empty loop

i do the following ng-repeat loop and it works well! <div ng-repeat="einschItem in einschaetzungen.alldata | filter: { savedatum: lolatage[tagarrayindex].tagestring } | orderBy : ...
0
votes
0answers
6 views

How to require angular-leaflet-directive?

I’m trying to use angular-leaflet-directive with leaflet and browserify. I know there are some examples in the angular-leaflet.directive code, but they don't use require as far as I can see. My html ...
0
votes
1answer
25 views

Angular 2 external inputs

Please can you help? Just starting with Angular 2 and having the following issue. my component is below: @Component({ selector: 'myapp', inputs: ['mynumber'] }) @View({ template: ` ...
0
votes
0answers
20 views

Angular is undefined in angular-animate

I'm building an angular application, I've got a couple of modules with services and controllers all of which are functioning correctly. I've just added angular-animate to my list of scripts, which are ...
0
votes
2answers
23 views

AngularJS ng-repeat not working

Hi I have a table of data that I'm trying to access via ng-repeat. I think I've got everything correct in my code, but when I load the page the data doesn't load. I'm not sure what I'm doing wrong. ...
0
votes
1answer
19 views

getting an error Argument 'MainController' is not a function, got undefined

Huy! I have some issues in my code: This is my index.html file: <body ng-app="myApp" ng-controller="MainController"> <nav class="navbar navbar-default"> <div ...
0
votes
3answers
30 views

ng-click not working on li when used in ng-repeat

i am using li in ng-repeat like this <ul class="pagination"> <li ng-repeat="page in vm.totalPages" ng-click="vm.statechange(page); ...
0
votes
0answers
7 views

Return value from modal Angular-UI bootstrap even if an error has occurred

I have read a lot of questions about how catch error in modal Bootstrap but none of them explain return value from modal in that case. This code invokes modal: var modalInstance = $modal.open({ ...
0
votes
0answers
4 views

tooltip for google chart line not showing

I'm using Google Charts on an Angularjs App ( using the directive google-chart) but the tooltip for the point is not showing when the mouse is hover the 'point' (the red arrow is the mouse position) ...
0
votes
2answers
10 views

Extracting the value from a Map given the key

I have this map returned as JSON "notificationData":[{"key":"origin","value":"ABC"},{"key":"destn","value":"XYZ"},{"key":"flt","value":"450"},{"key":"date","value":"10/14/2015"}] currently i have ...
0
votes
0answers
12 views

how to correctly reference a js file in a ejs file in Angular

This is my project structure: public -js --angular.min.js --angularApp.js templates -views --index.ejs This is my index.ejs file: <html> <head> <title>My Angular ...
3
votes
1answer
40 views

Communicating with a directive instance in AngularJS

I have a directive with an isolate scope being rendered inside the template of an outer directive. I want to send a notification message to the child directive to have it cancel a timer. How can I ...
0
votes
0answers
8 views

How can I force my angular autotab directive to tab to the next input in every situation (keyup, keydown, etc)

I have an autotab directive where a user can specify a maxlength and the next element to tab to. Right now, I have it so on keyup, if the length of the element is >= maxlength, tab to the next ...
1
vote
1answer
26 views

Using hyphen(-) in the url without encoding

Trying to make a request using the angular js $resource but it is encoding the url for making a request. Request url http://example.com/oabc/access-token and the code is ...
0
votes
0answers
6 views

Windows Store App (JavaScript) stopped displaying embedded web fonts

We use javascript/Angular inside our application and have a few different typefaces saved into a fonts folder within the project. During a recent update the app stopped loading/displaying multiple ...
-2
votes
0answers
10 views

AngularJS get http headers after user request

I am working on an Angular application and I need to get some HTTP headers from user. In fact, the user is authenticated by the SSO and redirected to the application with some custom HTTP headers. ...
0
votes
1answer
20 views

Angular splits ng-models on '_' and creates array. Why? And how do I stop it?

I have a HTML form with a bunch of inputs named geometrie_1_bezeichnung, geometrie_1_stack, geometrie_2_bezeichnung, geometrie_2_stack and so forth. ng-model of these fields is created dynamically ...