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

Is it possible to have more than three hues in angular material design provider definitions?

Right now it looks like I am only allowed to define 3 hues in the provider and not allowed to create a new hue called hue-4 that could be used as class="md-primary md-hue-4". Am I correct in thinking ...
-2
votes
0answers
5 views

How to remove default required field styling - AngularJS

I am working on a screen and using ng-required="required" on textbox and dropdown. The textbox and dropdown are displayed as below and I want to remove that styling. Thanks for your help. ...
0
votes
1answer
10 views

How to make a table with selectable rows accessible

I have a web app with a view that renders a list of items, where the user is intended to select multiple rows, by means of a checkbox at the start of each row, and then subsequently invoke an action ...
0
votes
1answer
14 views

Sharing and observing data across controllers

We're using a tree-style navigation element which needs to allow other directives/controllers to know: What the current selection is, and When the row selection changes I'm trying to determine the ...
1
vote
0answers
10 views

How to load RxJS in a minimal Angular 2 app using systemjs?

I'm unable to get a minimal Angular 2 application using RxJS off the ground. I'm using Typescript (tsc 1.6.2) and systemjs for module loading. How do I get systemjs to load the Rx module correctly? ...
0
votes
0answers
5 views

REST-like optional paramters in AngularJS UI-Router

I have an url: /test2/foo/{int}/bar/{int} and a state that it leads to. I'm trying to figure out the best approach for making the parts after /test2/ optional. Obviously, it's easy to do with with ...
0
votes
0answers
5 views

Angular filter by category using buttons nested object

I have a filter by category using buttons, but the problem is when i try to filter by nested property in the array, for example team name or members Here is my Plunker: ...
0
votes
2answers
10 views

How to use Angular to conditionally set a second form value when a selection is made?

Suppose I am creating a reservation system for a party. Each guest must answer many questions to make a reservation, and among these are: "Are you at least 21 years old?", and "Do you plan to drink ...
0
votes
0answers
9 views

How to examine AngularJS text input field for reason of non-validity

I've got an AngularJS v1.2 form that is doing automatic phone formatting. The library I'm using is validating upon submit, but when returning to edit, the same field and same value is showing up with ...
1
vote
0answers
12 views

AngularJS UI-router not routing on Unauthorized resolve call

I have a dashboard app user needs to login to. Everything works correctly if you go to the login page and then login and it proceeds to the dashboard. My issue is that when some one tries to hit the ...
0
votes
1answer
11 views

Access asp.net MVC model from AngularJS

I'm trying to access my asp.net MVC model from angularjs. I can convert the model to a javascript object using var model = @Html.Raw(Json.Encode(Model)); this works fine -I can access the object from ...
0
votes
1answer
20 views

AngularJs - Directive Using Parent Scope Vars W/ Isolate Scope

I don't even know what to ask at this point (edit: I have been informed that it's unclear that my question is "Why isn't the directive seeing attributes passed to it"), I thought I understood it. ...
0
votes
2answers
27 views

Difference between var=$http and return $http

I am trying to understand the difference between those two http calls in my factory: One: function(code) { return $http.get('api/team/' + code) .then(function(resp) { ...
0
votes
1answer
20 views

Proper way to add string from template to scope

I'm having a bad time finding what should be the angular way of adding a string from markup to $scope in the most clean way. Reason behind this is cause text changes with locale but locale is static, ...
0
votes
1answer
19 views

Get a combined string from an Angular custom directive with a list of input boxes

I'm a newbie to Angular. Enjoy the fun of learning new things currently. Here is my intention - I would like to have a list of input boxes. And then I want to get the combined string value from user ...
-1
votes
1answer
10 views

Rethinkdb, koa, ejs ,angular - realtime update in html

I'm trying to get a real time update in html using Rethinkdb, koa, ejs and angular. something like Rethinkdb main page example streaming rethinkdb results I have looked in a few examples on the web ...
0
votes
0answers
32 views

AngularJS not updating view

I'm quite new to Angular, and I feel that the more nesting there needs to be, the more complex the code. I feel that I'm missing some fundamentals here. Problem: In the chapter.html I see everything ...
-1
votes
0answers
15 views

Setup Project - Technologies & Risks

i have been puzzled since a few days now in regards to a project which needs to start soon. Scenario: the website/application will display daily deals (only a limited amount per product) which are ...
0
votes
1answer
19 views

Pull data from API when form loads

So I am trying to find the most direct point to do a 'Get' from an API when a page loads. As an example, if in my app I go to "#/somepage", when I click on the link to do so, it also does a get from ...
0
votes
0answers
18 views

AngularJS directive unit test - ReferenceError: window is not defined

I'm attempting to run a simple unit test on an ES6 AngularJS directive using karma, mocha, and chai. My test fails with the following error: Home directive 1) "before each" hook for "should have ...
0
votes
0answers
12 views

Can I create an ngResource instance with a method that uses a different route than the rest of the methods?

I have a standard-ish resource with a basic route definition of /documents/:id. Create / index methods both have nil for id, thus creating a route of just /documents. return ...
0
votes
1answer
17 views

Ng-show not updating when boolean changes on page with multiple controllers

I am trying to build an audio player that can be seen across my site. At first it will be hidden, until somebody tries to play an audio file, and then it will pop up at the bottom of the page. So I ...
0
votes
0answers
16 views

HOW to call to angularjs method from a jsf commandbutton

Does anyone know if you can call an angularjs method from a jsf commandButton. A button like this: <h:commandButton actionListener="#{taskController.stopAllTasks}" ng-click="deActivateTasks()" ...
0
votes
0answers
14 views

Using AngularJS to set the height of the elements to the one with the greatest

Right now I'm using Bootstrap to control the rows and cols; however, there's a problem I can't seem to fully overcome. First off the contents of these components vary in height for not just each ...
0
votes
1answer
9 views

AngularJS and FancyTree: Events firing, but with undefined parameters

I'm trying to write a directive for fancytree. The source is loaded through ajax and almost everything looks like a charm. The tree is correctly shown, events are firing nice, but the parameters get ...
0
votes
0answers
9 views

Angular directive not working using Yeoman

I am trying to test a directive created with the following yo angular:directive countriesDirectives this is the resulting directive with some changes 'use strict'; /** * @ngdoc directive * ...
0
votes
0answers
4 views

Ionic: How to check if streaming audio is stopped while app is in background?

In my ionic app, I have a page where you can stream audio. When in-app, this works fine. The events are handled correctly and the app knows when the audio is playing. My code is as follows: View ...
0
votes
1answer
21 views

AngularJS - Add DOM elements on counter++

I'm quite new to AngularJS and have read a little bit about how directives work. I'm still not quite sure about how to go about this problem though. Here's the setup: I have buttons on a view like ...
0
votes
1answer
27 views

Why is the ng-class directive being compiled after my custom directives

Link to plnkr for example explained below: http://plnkr.co/edit/oYvwHnAIvFb4rUqqwsz3?p=preview Hi, I dont understand why angular is compiling my code this way and need some help understanding why it ...
0
votes
2answers
17 views

AngularJS get external template and $compile

I have an external template called _include.tmpl.html it's contents are: <script id="sBlock1" type="text/ng-template"> <li ng-repeat="user in users" data-customer-id="{{user.CustomerID}}" ...
-4
votes
0answers
14 views

Why angularjs controller is not called when i click the button again?

Hi i have a webpage like this, left side has button, right side is the area for ng-view (in my case, several checkboxes and submit button) When i click the button, it'll 1. using the route ...
0
votes
1answer
38 views

Compare Two JSON Objects to See Changes Angular

I need to refactor my program to take a JSON obj, store it somewhere, make a bunch of changes, then compare the two objects to see what has been changed, deleted, and added. I'm not sure of a way ...
0
votes
2answers
16 views

TypeError: Unable to get value of the property 'test': object is null or undefinedundefined

I have a function that evaluates a string through a set of regular expressions. Those regular expressions are wrapped as their own objects inside of charRules. If the string is invalid, return ...
0
votes
1answer
14 views

How value from intut/textarea/checkbox without form?

HTML: <input ng-model='user.email' type="text" value='' /> <input ng-model='user.password' type="password" value='' /> <div ng-click='tryEnter()'> <span>Enter</span> ...
1
vote
1answer
25 views

Calling Java EE rest service from angular

I'm trying to call a JavaEE 6 rest service from an Angular factory I created and am running into issues. The java rest service was created by someone else, and I'm trying to work off of it, and I'm ...
0
votes
1answer
17 views

Injecting service directly into template

Is it possible to access a service directly from an expression in a template, such as inside an ngClick? I didn't think it was possible, but Angular material's Menu demo seems to inject a custom ...
0
votes
0answers
19 views

UI Bootstrap / Hide disabled years in datepicker

Is it possible to hide years that you can disable of using min-date and max-date attributes ? JS: var app = angular.module('pqrs', ['ui.bootstrap', 'ui.bootstrap.datepicker', ...
0
votes
0answers
7 views

ngAutocomplete and $modal

I am implementing a modal and would like to use ngAutocomplete for address search. The problem is that the results appear under the modal. which mean I cannot see them but can still select with ...
1
vote
1answer
21 views

angularjs XXXService.XXXfunction is not a function

It is my first try writing up a service in AngularJS. I have a service, in which I have a function. When I call this service from my controller, it says XXXService.XXXfunction is not a function. My ...
0
votes
1answer
19 views

Expose directive methods to $scope

I'm having some trouble with one of my Form directives :/ I want a directive that can communicate with others directives that i have in a page, and this directive would communicate with the ...
1
vote
0answers
13 views

How to select an SVG element inside an <object> tag with JavaScript?

In my Angular appliation, I want to be able to select the embedded SVG element of an <object> tag using JavaScript or Angular jqLite. Normally, to do this operation, one must write something ...
0
votes
1answer
16 views

AngularJS leave page

I use AngualrJS for my frontend, before navigating to a page in my routes.js there is a resolve where I can initialize variables needed for controller. Actually I need the oposite of them - if I ...
0
votes
1answer
13 views

Setting ng-src to nothing on iframe

I have a small Angular-app where the user can click on a link to open a popup with an embedded Youtube-clip. The important part of the popup looks like this: <iframe ng-src="{{ ...
0
votes
1answer
24 views

AngularJS orderBy expression with subtraction

I have an expression {{ product.SelectedProduct.BasePrice - product.SelectedProduct.Discount | currency }} I need to be able to order my products by the value of baseprice - discount. Is there a ...
0
votes
0answers
22 views

Access scope variable inside script in AngularJS

I'm trying to create a simple application using AngularJS and TimelineJS3 but I'm having a problem with it. I have a state (timeline) which contains a partial view (timeline.html) associated with a ...
0
votes
0answers
18 views

directive post link function - focus on element once it's visible

I have the following directive to allow focusing on an element: angular.module('app').directive('focusOn', ['$timeout', function ($timeout){ return { scope: { focusOn: ...
0
votes
1answer
12 views

Deploy Angular app with Gulp on Heroku: app crashed

I have a Node.js + Angular web app that is using Gulp. It works perfectly in my local machine when I run the command "gulp serve". I am trying to deploy it in Heroku following some resources I found ...
-1
votes
1answer
21 views

Why overridden `controller.$render` is not getting called?

Have a look at this code @ plnkr.co. In the link function of directive, controller.$render() was called which worked fine. Problem is when I override controller.$render function then it does not run. ...
0
votes
1answer
16 views

Django Rest Framework: XMLHttpRequest cannot load http://127.0.0.1:8000/xyz/api/abc

SOLUTION: Add a trailing slash to the end of the url... "http://127.0.0.1:8000/xyz/api/abc/" instead of "http://127.0.0.1:8000/xyz/api/abc" .... I have successfully created a Django Rest API and am ...
0
votes
0answers
12 views

How to broadcast and get notification using Express, AngularJS, Socket.io?

I am trying to make notification system. To demonstrate this, User 1 is sending friend request to User 2. I am using express.js, angularjs and socket.io. On click of the button User1 sends request. On ...