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

Angular dynamically adding directive

I want to dynamically use angular-slimscroll in my webpage. The directive looks something like this: <div id="scroll" slimscroll="{slimscrollOption: value}"> Scroll Content </div> ...
0
votes
1answer
8 views

angularjs expression didn't execute properly

My HTML {{myId}} <iframe width="100%" height="325" src="http://example.com/direct/?param={{myId}}" frameborder="0" allowfullscreen></iframe> The first {{myId}} worked but my second ...
0
votes
1answer
7 views

AngularJS: ngBindHtml that also contains child bindings?

AngularJS v1.3.14: Currently, I'm successfully using the 'ngSanitize' module in my angular app with "ng-bind-html" to bind some HTML to the output of an area on the page. That works and doesn't ...
0
votes
0answers
6 views

Injecting resolves into directive controllers

I'm using AngularUI router (0.2.13) and have a state defined as such .state('foo', { template:'<div some-directive></div>', resolve:{ ...
0
votes
1answer
19 views

How To Access Function From Outside AngularJS

I have absolutely never used AngularJS - I am able to handle all parts of someone else's script - but am lost with a newb idea of accessing the functions outside of the Class? Or whatever it is ...
0
votes
0answers
4 views

karma/requirejs/mocha : how to load a module / controller?

I have a simple spec file to test a controller. I an unable to load the controller to test it. Here is what I have : define([ 'angular', 'angularMocks' ], function() { ...
0
votes
0answers
6 views

Angular service and pouchdb

How do you use angularjs service to call pouchdb and return the data to the controller? I have been working on a ionic app with pouchdb for local storage. I have a simple crud app built in a ...
0
votes
1answer
7 views

Unknown provider: eProvider <- e when showing material angular dialog

I'm trying to get material angular's dialog wired up. Code below. I get error, Unknown provider: eProvider <- e. Js var app = angular.module('app', ['ngMaterial']); var dialogController = ...
0
votes
1answer
8 views

Angular UI & Bootstrap: Collapse Mobile Navbar on Link Click

I have a functioning bootstrap navbar through use of ui.bootstrap of Angular-UI. For the mobile navbar, I want the navbar to collapse when a link is clicked. The toggle button functions as expected, ...
0
votes
0answers
4 views

angular.mock.inject causing $injector:moduleerr

I am setting up unit tests using Karma, Require.js, Mocha and Chai. After setting everything up, I have a simple spec file to test a controller and a scope variable. I know an inject function needs ...
0
votes
2answers
13 views

Angularjs $http post didn't pass param?

I've been debugging this for hours. Tried to set the header etc but no luck! My controller $http({ url: 'http://myphp.php/api.php', method: "POST", data: {'wtf':'test'} }) ...
0
votes
0answers
16 views

open something from list so you can view and edit it

i have a angular app setup for adding invoices to a page. I want to be able to open the clicked invoice into another page where it can be viewed with all the data in it. What i have so far: ...
0
votes
1answer
10 views

Multiple states on one page with ui-router

currently i am investigating the possibility to configure ui-router for the following scenario. It would be great, if someone have an idea how to achieve this. I have a simple one pager layout with a ...
0
votes
1answer
24 views

Updating an ng-repeat property in one controller based on the ng-repeat property of another controller?

I have two separate Angular controllers, one in the main content area (homeCtrl) showing a list of events, and one in the sidebar (sidebarCtrl) showing a list of tags for events. // homeCtrl.js ...
0
votes
1answer
9 views

angular access ng-repeat array from child directive

I had an idea for an angular directive but I'm not sure if it's possible. I often have to delete and item from an ng-repeat array, so the de facto solution is to have a function on the scope: ...
1
vote
2answers
30 views

What is the proper way to declare calculated fields in AngularJs' model?

How should I declare calculated field in AngularJs model? If I do it like this: $scope.model = { id: null, calculatedField: function() { return 1+2; } }; ...
0
votes
0answers
4 views

intercepting column click in NG-Grid

I have a problem with NG-GRID. I was wondering if there is a way to intercept or detect column click event? using version 2.0.13.
0
votes
0answers
6 views

Testing ui.router $stateChangeSuccess

I have a simple function in my main controller that updates $scope.loading based on ui.router's $stateChangeStart and $stateChangeSuccess events. $scope.$on('$stateChangeStart', function(event, ...
0
votes
0answers
2 views

Setting Kendo UI Grid Group Header Template value with angularjs

I'm fairly new to Kendo UI/Angular and I've run into a problem which I hope is not a biggie. Basically I want to allow users to dynamically create a grid.. that means setting data source, selecting ...
0
votes
0answers
8 views

Liferay: Friendly URL field converts # to -

I'm using AngularJs in my portlets and need the pages in the navigation to have '#' in their path i.e. I have pages like http://example.com/#about, http://example.com/#faq etc. When I put in Pages ...
0
votes
0answers
7 views

AngularJS XMPP Get Roster

I am use XMPP JSJAC library and AngularJS programming Chat application. I can connect to the server, but does not list roster. app.js var app = angular.module("app", ...
2
votes
3answers
28 views

angularjs service can't access property

I have a class set up like this: .factory('DesignerService', function () { var kit = { clubName: 'Moss side archery club', teamName: 'The flying arrows', selectedColours: ...
1
vote
3answers
16 views

How to bootstrap an Express / Angular app with a user object?

During the initial request, how can I load a user object (or any object) on an Express back-end and then populate an Angular app as soon as it is loaded? I have an application that I am sending a JWT ...
0
votes
1answer
18 views

$location.search() setter not causing reload in ui-router

With ngRoute, using the $location.search() as a setter will cause a route reload and you can turn off this behaviour with reloadOnSearch: false. However if I swap the ngRoute code with the above ...
1
vote
2answers
20 views

Mapping array items to repeated list

Here's an unsophisticated version of what I want to achieve: $scope.colors = [{ "Name": "Red" },{ "Name": "Orange" },{ "Name": "Yellow" }]; <ul> <li>{{colors[0].Name}}</li> ...
-2
votes
1answer
13 views

How hide options in select list angular?

There is an object: 0 : { id : 1, value : 2}, 1 : { id : 2, value : 3} And select list: <select id="sec"> <option value="1"></option> <option value="1"></option> ...
0
votes
2answers
18 views

AngularJS contenteditable blur on Enter

I have a directive which i add on a div in order to be able to edit it's content and make a two-way binding to the scope. I wish to blur when I press the return button, I've tried element[0].blur(); ...
1
vote
0answers
12 views

How can i call send and accept Json object from angular to backend on play frmaework?

I have written a front end in angularjs and back end in scala on play frmaework. Now i want to send json object from angular to back end by calling a method which returns json object also. I have ...
0
votes
0answers
12 views

Listening to set_event using the ui-gmap-polygon

I'm currently using the DrawingManager to allow users to draw shapes on the map. Once a shape is drawn, I set up a listener on the polygon's path so I can react after the path has been changed: var ...
0
votes
0answers
5 views

Using ngmessages for server-side errors?

I've been reading this post to handle error messages. The HTML portion of the code now has basic error checking for username and password fields (minLength, maxLength, required) when logging in. ...
0
votes
0answers
8 views

angular select $touched validation

I have a form with select and a button that is enabled when the form is validated. It works fine with input box. However, it the $touched does not seem to be working properly for the select. The ...
0
votes
0answers
7 views

inject ngRoute in requiredjs

I am tring to insert angular route in an angular project which has also a requiredjs. app.js looks like this: requirejs.config({ baseUrl: 'lib', paths: { app: '../app', ...
2
votes
2answers
17 views

Why is ng-disabled not working on button?

My Plunkr: http://plnkr.co/edit/4MkenJPczFbxy5aoillL?p=preview <body ng-controller="mainCtrl as main"> <h1>Hello Plunker!</h1> <p>Button should not be disabled:</p> ...
0
votes
1answer
16 views

Incorrect syntax when filtering ng-options?

I'm trying to sort alphabetically by the 'long_name'. To no avail. I can't do anything to get the list to change. Am I missing something? <select ng-model="client.primary_contact" ...
1
vote
0answers
9 views

Fallback or Disable Angularjs HTML5 pushstate in IE9

I know this question is already raised but i haven't came across something i'm looking for. Pushstate works in modern browser and i have also created corresponding routes in Nodejs to make Deeplink ...
1
vote
2answers
18 views

angualrjs: escape slashes from parameter value passed to $http.get

I am using a simple HTTP GET call in angularjs and passing some query string parameters. One of the param is a date. Let's say "update" and the value passed is 03/20/2015. When I make $http.get call ...
0
votes
3answers
35 views

How to make angular display an empty <p> tag?

I'm using ng-repeat and am trying to create a paragraph element that has a specific border on hovering, even when the element itself is empty. However, when the paragraph element is empty, there's no ...
0
votes
0answers
8 views

Testing CSS properties changing on Template in Directive

I have a directive that links a watch function to the DOM. In this watch function, I watch for a value in my directive's isolated scope to change. The watch function callback will then execute some ...
0
votes
0answers
13 views

Is there anyway to limit how long something stays in Local Storage? [duplicate]

I have some items saving to local storage, is there any way to limit it to say.. only 24 hours? Or something of that nature? As of right now, and of my understanding, local storage lasts indefinitely, ...
0
votes
0answers
10 views

updating multiple charts with one focus chart using Angularjs-nvd3-directives

I am trying to create a dashboard where everything is controlled by one focus chart. For example, if you check out the plunker here: http://plnkr.co/edit/waXnb57OKA9vkrZzNtrm?p=preview then you ...
0
votes
0answers
8 views

Is it possible to drag and drop an ng-grid cell into another cell and into another ng-grid?

I have been doing some googling and the closest thing I found was that you can drag and drop rows to do row reordering. However, I don't want to reorder, I want to drag and drop a cell from one row ...
2
votes
1answer
20 views

$q.reject and handling errors in AngularJS chained promises

I'm having trouble understanding a basic concept of error handling with chaining promises. In order to learn the rules, I have written a simple example, guessing what the result will be. But ...
1
vote
1answer
22 views

AngularJS select required

I'm having some issues with setting up the validation for a select. the code reads like HTML <form name="customerForm" novalidate="novalidate" data-ng-submit="submit()"> <li ...
-4
votes
2answers
33 views

How create select from object in Angular?

How easy to create select list from object JS? Object: 0: {UsersWork: "600", Name: "Salaria"}, 1: {UsersWork: "700", Name: "Bavaria"} I need create: <select> <option ...
0
votes
0answers
7 views

Using parsley js to validate form

I must be overthinking this or something. I've read all over the parsley form validation site and, as far as I can tell, it simply passively responds to attributes set up in the DOM. It needs another ...
0
votes
3answers
37 views

Rebuild JSON after $http.get with AngularJS

I am trying to get a JSON response from Splunk to fit into highchart, but im having real problems formating the data right. I`m a really big fan of AngularJS, but I have some trubble wrapping my head ...
1
vote
1answer
21 views

Testing Angular app with Protractor inside iframe hosted by non-Angular app?

In the process of migrating a legacy app to Angular we have a setup where the legacy app loads the new up in an iframe. We want to test this integration with Protractor. The legacy app is not an ...
-1
votes
1answer
27 views

Extracting value from $scope variable?

How can I assign a regular javascript variable to the current value of an angular $scope variable without binding their values? //$scope.var1 is initialized to some value, say 5 var v2 = $scope.var1; ...
1
vote
1answer
11 views

Protractor - How to get actual values from the Repeater, not the Elements?

I creating a Protractor script to test my quiz game that puts up random questions and answers, so I need my script to be able to figure out which answer is correct, so I can click it. I can't figure ...
0
votes
0answers
20 views

After text input model set, angular search filter breaks

I'm writing a combobox as a directive, and am having some trouble with it. Its setup so when someone clicks the input, it shows all options in a dropdown, and as you type, it filters the results. If ...