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

Carousel on items using ng-repeat

I am looking for a simple example of carousel like control, that uses ng-repeat to create the items in the list. I am not looking for the image carousel, rather initially have 4 items in horizontal ...
0
votes
0answers
10 views

tell ONLY from the view if a scope variable is a function or not?

Is there a way in an angular view to do: {{ foo() || foo }} I am looking for an easy way to have a reusable view that multiple controllers can use which can support using either a variable or a ...
0
votes
0answers
12 views

Two-way binding using angularjs + node.js

I'm trying to use send data from the server (node.js) to the client (front-end:angularjs) this way: //app.js angular.module('app').config(function($routeProvider, $locationProvider) { ...
1
vote
0answers
18 views

AngularJS how to configure Provider between 2 modules?

Please see my proof of concept: http://plnkr.co/edit/y3pzFv?p=preview. How Do I configure Provider between 2 modules? Brief: I am trying to generalize a service and configure multiple instances ...
0
votes
0answers
7 views

Passing data from server/app.js to controller Angular-fullstack + multer

I'm struggling to get a filename passed from server/app.js to a controller in client/app/ I am using Multer to deal with the file upload which is working fine but i need to pass the filename back to ...
0
votes
0answers
7 views

browser.wait() for ng-if directive

I have this test: it('should get alert', function() { browser.wait(element(by.css('[ng-if="alert"]')).isPresent()); var alert = element(by.binding('alert')); ...
1
vote
3answers
20 views

use angular factory to hold a value for rest of application to access to minimize server calls

I have the following factory: angularModule .factory('ArticleCategoryService', function ($http, $q) { // Service logic // ... var categories = []; var _getCategories = ...
1
vote
0answers
16 views

AngularJS: How do I autofocus a list of elements one at a time within ng-repeat?

This Mad-Libs type game is my first AngularJS app. The user is presented with a list of boxes (generated with ng-repeat), one at a time (thanks to ng-show), in which to input their words. I would like ...
0
votes
0answers
5 views

possible to user per service interceptors?

Is it possible to override my authInterceptor on a per service basis? What I'm trying to accomplish: I'm using a JWT for my own api, but occasionally I'm using Google Apis and need to reset my ...
0
votes
0answers
8 views

Laravel - Angular Routes

I am trying to integrate angular with Laravel 5 and can't get the routes to show content from pages other then the index file. It is not picking up the route under .when() as I can change the ...
1
vote
0answers
17 views

Keeping Angular form validation DRY

I have a form that has maybe 15-20 fields. Each one of them contains an attribute that looks something like this: ng-class='addressForm.city.$invalid && addressForm.city.$touched ? "error" : ...
0
votes
0answers
2 views

ngAnimate trigger scope $destroy after ng-leave

Using ngAnimate the $destroy event is triggered before the leave animation even begins, while the element is removed after the animation is done. Is posibble to trigger $destroy event after the leave ...
0
votes
0answers
11 views

click() doesn't work in IE 11 but works in Chrome on the same elements

I have two clickable elements on my webpage, which is a login page. One is a remember-me checkbox, and the other is a login button. The code below executes successfully on chrome. However, when I run ...
0
votes
0answers
14 views

How to have a slash in the URL without breaking the app?

State config: .state('home', { url: '/', templateUrl: '/components/item-list-view.html', controller: 'ItemListCtrl' }) .state('add-item', { url: ...
0
votes
1answer
11 views

Retaining scope value from the cookie store on page refresh

I have the following code in one of my controllers. $scope.artistId = $cookies.artistId; $scope.artistName = $cookies.artistName; $scope.switchArtist = function(artist) { $scope.artistName = ...
1
vote
1answer
17 views

Angularjs: $scope.emit is not working

I am a newbie at angularjs and i am creating a web application to earn experience and practice. The problem i have is that $scope.$emit does not seem to be working, i am looking for ways to contact ...
-1
votes
1answer
17 views

How to define layout in AngularJS

I am new to Angular JS...our screen layout is divided into 4 sections.. <table> <tr> <td>Section 1</td> <td>Section 2</td> <td>Section ...
0
votes
2answers
48 views

Why I'm getting the var undefined

I'm trying to get a Rest array and then display it on my HTML. the problem that I'm facing is that In My factory I'm able to get the array and display it's content, but not in my controller where I'm ...
-1
votes
1answer
19 views

Angularjs Ajax get sending headers

I'm new to angularjs, and im using a service for my http requests. one of the rest api's i need to send key value pairs in the header. username: foo password: bar how do i do it using the http ...
0
votes
0answers
3 views

How to set X-Requested-With header in AngularJS ngDialog plugin

I was able to figure out how to get the $http object to send X-Requested-With header but I now need to do the same for AngularJS's ngDialog plugin. (or would prefer to) I'm trying to use the Zend ...
0
votes
0answers
12 views

HTML Datalist disable autosuggest

I am trying to find a way to use Angular JS filters in a datalist. There are a few reasons I want to do this 1. I have found Angular's filters to be better than the default autocomplete for a ...
0
votes
0answers
13 views

how to display items from database on webpage using Spring MVC and Angular JS

I am currently working on a spring mvc project I have a JSP method that displays all the items in the database in one page with this: I want to change from using JSP to Angular MVVC type of model so ...
0
votes
1answer
25 views

Angular JS: how to “load” an individual record from a json dataset?

I have json data, an array of 50 objects representing people. Each one has parameters like id and lastName. I load this into my controller via a resolve, EmployeeResolve, and into a variable ...
0
votes
0answers
4 views

How can I redraw the ITHit Ajax File Browser in an Angular SPA when I've got all the instantiated parts?

For various reasons I will not go into, I have successfully wrapped the ITHit Ajax File browser inside of an Angular Controller, which itself is loaded and wrapped in an Angular-UI-Router UI-View. ...
-1
votes
0answers
10 views

div contenteditable and canvas text

I am trying to bind div with fabrisjs IText. On pressing enter i am getting in IText. I've tried decode, encode, carriage return. Only String is being passed. $scope.updateText = ...
-1
votes
0answers
13 views

angular-bootstrap / ui-bootstrap carousel showing weird grey area when clicking

no idea what's happening here but i have a carousel that show's a weird grey area behind my carousel caption. Has anyone seen this before? And then it will magically go away if i click anywhere on ...
0
votes
0answers
10 views

How to avoid memory leaks using Javascript google.maps.places.Autocomplete in Angular ng-view

I'm having trouble with google.maps.places.Autocomplete and single page app. Long story short I have a Angular directive with form with input field in it. The input field has autocomplete ...
1
vote
0answers
73 views

AngularJS: Cannot interpolate attribute from first directive to a second. (w/ plunker example)

Reference Reference plunker: http://plnkr.co/edit/otv5mVVQ36iPi3Mp0FYw?p=preview Explanation of the issue Suppose that we have two directives, first-directive and second-directive. Now suppose we ...
0
votes
0answers
11 views

angular forms validation issues when using plugins

I have an Single Page Application build using Angular and i am having some issues with the form. Form is using a check box a drop down and two text boxes. first text box (Name) has no validation. ...
0
votes
0answers
10 views

Rendering SVG via Angular ng-bind-html

In a recent question (Reference Angular binding from javascript) I asked how to bind a generated SVG to a specific div. I got two good answers which I've been tinkering with since. I'm trying to ...
1
vote
3answers
43 views

How-to build a directive to customize labelized radio buttons

Here is a custom radio buttons: The angular HTML code: <div ng-app="app"> <div ng-controller="ctrl" class="sm-box"> <p>Please select a mode: <sm-radio ...
0
votes
0answers
8 views

Angular ui-router not calling child controller in nested routes

I have my routes set up as below. Its too frustrating that the view in view.tab is loaded but its controller isn't called. I tried without the paramaters, but it still doesn't work as expected. Does ...
1
vote
1answer
17 views

How to select option from object?

I have object $cities = {'name' : 'Bamber', 'id' : 3} And select list: <select ng-selected="selectedCountry == item.id" ng-options="item.id as item.name for item in countries"></select> ...
0
votes
0answers
11 views

How to use directive inside another directive's template in angularjs

I'm new to AngularJS, and I want to use directive inside another directive template here are my two directives: exerciceredactionnel directive .directive("exerciceredactionnel",function(){ var ...
1
vote
0answers
8 views

Keeping Leading zero's for Route-UI Query Parameters?

I am trying to use the route-ui url query to pull in two values, customerNumber and employeeID. EmployeeID has leading zeros. When I use the query url as below, it strips the leading zeros when I ...
0
votes
2answers
21 views

AngularJS data binding to HTML Table not working

I have this code, from a tutorial I've followed online; unfortunately it's not working, and I can't find why because I'm mentioning the script, the app, the controller etc.. Any help would be ...
0
votes
2answers
33 views

How to set CSS class in AngularJS directive and default if none set?

I've created a custom directive which creates an "upload button". It has the bootstrap button CSS applied to it like so: <div class="btn btn-primary btn-upload" ng-click="openModal()"> <i ...
0
votes
4answers
37 views

How to clear angularJS form after submit?

I have save method on modal window once user execute save method i want to clear the form fields, I have implemented $setPristine after save but its not clearing the form. How to achieve that task ...
0
votes
1answer
17 views

How to add JavaScript framework in rails app without adding gems?

I just want to know how to include frameworks like angularjs, polymer js, bootstrap.... Into rails app without adding corresponding gems. Reason is the gems that are available are changing and some of ...
0
votes
0answers
24 views

Angular 2.0 will work with Polymer? future of angular material?

I'm starting to move/learn towards angular for future development work.searched a lot and need some expert opinion regarding what is the best route to solve the puzzle. 1. Angular 2.0 is in alpha and ...
0
votes
1answer
16 views

How to pre-populate form-fields with data from another page

I haven an angularJS form that looks like this <section> <form role="form" ng-if="authenticated != true" name="registerForm" ng-submit="register(registerForm)" novalidate> ...
0
votes
2answers
23 views

Make menu dissappear on clickoff on tablet

Working in HTML, CSS and JS (technically Angular, if you think it's significant) I have a Header menu with dropdown sub-menus and sub-sub-menus when viewed in desktop style. On a PC the sub-menus ...
0
votes
2answers
27 views

Adding a user in-putted number with a pre-set variable in Angular.js

Another angular question: The aim is to make it so that a value entered within the #quantity input is the taken and times by the item's price, as listed within the controller. For example, if the ...
-3
votes
0answers
8 views

How to use gridview kind of feature using mvc and angularjs?

How to use gridview kind of feature using asp.net mvc 4 and angularjs?
0
votes
0answers
11 views

What strategy could I use to deploy a SPA with basic page sitting in front

Up until recently, I've been hosting my dev app on a single heroku instance. The API and the angular app are hosted from the same Express.js server. Along with a front-facing sales page, separate from ...
0
votes
1answer
18 views

AngularJS: how to save data in an html form between routes

I am currently working with AngularJS. Now I am wondering how can you save data in an html form between routes (angularjs routeprovider)? Does anyone has an example, experience or a link, which can ...
0
votes
0answers
9 views

Packery not working on AngularJS if i push additional widgets in my array

I searched for an considerable amount of time now but i still can't find a solution to my problem. I don't know anything about packery but i found this code which works perfectly and does what i ...
0
votes
0answers
12 views

managing scope objects populated from remote services in angular js

I have a function that saves a person object to a database from controller A. When the person service returns a successful promise I emit a "personListUpdated" event up to $rootScope where controller ...
0
votes
1answer
20 views

How do I stub and spy at the same time

So I'm testing a function that calls another function, that returns a promise, SUT looks like this: fn($modal) -> modalInstance = $modal.open({ controller: 'myCtrl' size: 'lg' ...
0
votes
1answer
16 views

Hyperlink in Angular/Ionic

I am having some issues adding a hyperlink to a 'hcard' in ionic. I am using the following plugin (https://github.com/drewrygh/ionic-ion-horizontal-scroll-cards) and the codepen is here: ...