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
2answers
13 views

Angular directive that uses dynamic value

I am trying to write a simple json pretty-printer directive in angular.js. I have: (function(_name) { function prettyJson() { return { restrict: 'E', template: '', ...
0
votes
0answers
5 views

Collection-repeat and checked input type checkbox

I have a collection of contacts and I generate an ion-item for each contact using collection-repeat. Each ion-item has a span, a paragraph and a checkbox element within it. I chose to use ...
0
votes
0answers
7 views

Get jQuery element reference from ng-click

I have a semi arbitrary length ng-repeat with a "tag along" element that gets rendered based on some criteria: <div ng-repeat-start="day in [1,2,3,4,5,6,7] track by $index">my ...
0
votes
0answers
3 views

Making AngularUI UI-Date datepicker use UTC time

It seems the datepicker uses localized time but I need it to use UTC times when I make calls to the backend. I get around this issue by adjusting the value before posting it to the server using the ...
0
votes
0answers
10 views

AngularJS how do I watch $viewValue instead of ngModel?

I am using debounce on an input: <input type="text" ng-model="model.qty" ng-model-options="{ debounce : 1000 }" min="{{model.min}}" max="{{model.max}}" step="1" qty-input ...
0
votes
0answers
4 views

configure a grunt server with a custom path

I'm building a little web app with Grunt/yeoman/ and angular. Ok so I'm trying to run my server with all of my files in the root, as if I was further down a path. The point of this is to pick up the ...
0
votes
1answer
9 views

Angularjs UI-router not working and no error message

I'm new to angularjs and I'm trying to set up my ui-routes. When I go to the page, I click on the button that sends you to the route and nothing happens (not even an error message). This is what my ...
0
votes
1answer
14 views

Update ngmodel from Select

We're attempting to display a customer's information based upon the contact they select. When we use ng-options it works as expected. We are, however, using Ui.Select2 and "ui-select2 is ...
0
votes
2answers
16 views

Shortening a String in Angular JS

I have multiple titles that are longer than 40 characters. I would like to shorten it to 40 characters and add ... if there are more characters. I want to do something like this but in angular js: ...
0
votes
0answers
5 views

How to upload image to firebase using Handlebar expression {{image}}

I am trying to upload images into my Firebase database following this article (http://richardbakare.com/thursday-tech-tip-firebase-images/) I've already installed Handlebars, however, this is my first ...
1
vote
0answers
16 views

Angular custom directive dilemma

I am creating a website/app using angular, most of my requirements are being met by the Controllers calling the service and $resource for rest data fetch and show them using the template files through ...
0
votes
3answers
31 views

AngularJS: Make ng-model available outside of ng-repeat

In my AngularJS app, I am looping through an array object and send the value to a radio input as value. The overall idea is that the user selects a radio box and the value with be back part of ...
0
votes
0answers
14 views

directive inside custom directive's template to run after my custom directive?

I am using angular's ui.mask from ui.utils to prevent users from typing anything but HH:mm in an input My model has a date in ISO format, therefore I have to process it before displaying it in my ...
0
votes
2answers
11 views

Displaying form data immediately on the side after submit - Angularjs

I am trying to display one piece of form data, the username, on the right side of the same page the form is present in (without page refresh). I want this to happen as soon as I hit submit. For this ...
0
votes
0answers
10 views

Angularjs routing OTHERWISE causes 404

I have a single page application where I route to different pages based on url address, I would like to redirect to Homepage when user enters non existing page in the url, so I use otherwise ...
-4
votes
0answers
17 views

AngularJS JSON to Table

I have below JSON { "name": "Profile", "rulesArray": [ { "Uncategorized": [ { "name": ...
0
votes
1answer
4 views

ngGrid scroll vertically keeps jumping back up

This bug happens on IE9, it probably happens in earlier version of IE as well. The bug cannot be reproduced on Chrome. ngGrid, scrolling with mouse does not scroll the page down. It keeps jumping ...
0
votes
0answers
7 views

sample angularjs code which will connects to sqllite

kindly provide a sample code/link/tutorial which will connect to sqllite database from anugular js. I am new mobile development
0
votes
0answers
19 views

AngularJS Noob: How to use $resource to grab array the records?

I am trying to grab an array of objects using my factory, but I think I'm missing a step. I tried it both without the .$promise and with, but it's not working My controller: ...
0
votes
0answers
11 views

Create nav-tabs with directives?

I have a nav-tabs in my view <ul class="nav nav-tabs" ng-controller="myController"> <li ng-class="{ active: isActive('/Page1')}"><a ...
0
votes
0answers
8 views

How To Require btn-radio Angular Bootstrap Button?

I'm using a set of bootstrap label buttons as radio buttons (as they state to do in the angular bootstrap documentation here - http://angular-ui.github.io/bootstrap/). They work great. Only question I ...
0
votes
0answers
3 views

JQuery Datatables sort col by date

I'm using jquery's datatables plugin in my project and I need to sort a date column. At this moment I'm using moment.js to format my table data like so: var m = moment(); m.lang('es'); return ...
0
votes
2answers
12 views

How can I prevent to watchers from firing in the same digest cycle?

I want to call a function drawChart() when either my string chartTitle or when any of the properties in my object chartOptions changes. Watching them individually is easy: ...
0
votes
1answer
10 views

add new item to typeahead if it's not on the list

I'm using angular bootstrap typeahead. I would like to make an enhancement where if the item is not in the list, the user has the ability to add a new item (maybe the item being typed shows up at the ...
-1
votes
0answers
6 views

Google Chrome Packaged App for my Site

I currently maintain a membership (POS + CRM ) website, but i would like to make use of some hardware equipment( such as a barcode scanner attached to the computer via USB. I have looked through the ...
-2
votes
3answers
51 views

JavaScript: Access an object's key value

I have JSON that looks like this: { "greeting": { "hello": ["world", "josue", "everybody"] } } I am wondering why I cannot use a string to access it's properties like so: var str ...
1
vote
2answers
25 views

applying angular directives to a set of elements

I want to disable all of the form elements in a large form with many tabs when a certain condition is true. I could use something like <input ng-disabled="myCondition()"> but I'd need to add ...
0
votes
2answers
25 views

When building a tree using ng-include, my 'ng-click' is not working

I'm building a tree using the following code with 'ng-include', and it's looking fine: <script type="text/ng-template" id="tree_node.html"> <a ng-click="select(this, data, ...
0
votes
0answers
13 views

How to set the max and min value in yAxis in d3

I have been trying to set the yAxis max and min values to a diferent values that the one is obtaining by default from the data by d3, but until now I couldn't. I have try with no result at all: ...
0
votes
1answer
50 views

AngularJS : how to organize your code?

I'm currently trying to get all the concepts that AngularJS involves and it's pretty big. I understood most of it but I still don't really get how to organize your app. Let's take this example : on ...
0
votes
0answers
13 views

Adding bacon.js to angularjs

I came a across the following article while considering adding bacon.js and AngularJS: https://github.com/ProLoser/AngularJS-ORM But I could not find any other resources that would encourage (or ...
0
votes
0answers
9 views

Using scope function inside directives fails in Jasmine

I have an Angular with a link like this... scope: { etud:"=" } link: function(scope,element,attrs) { scope.getWarningClass = function(){ var alertClass = ""; ...
0
votes
1answer
24 views

AngularJS how to make more than box 2 flips?

I want to make more than 2 flips of my div (no just front,back) with angular flip eg. 4-5 like a cube code: <!DOCTYPE html> <html data-ng-app="app"> <head> <meta ...
0
votes
2answers
31 views

AngularJS: lazy loading controllers and content

In this simplified scenario, I have two files: index.htm, lazy.htm. index.htm: var myApp = angular.module('myApp', []); myApp.controller('embed',function($scope){ $scope.embed = 'Embedded ...
0
votes
1answer
11 views

Use a factory in protractor test

After a lot of searching and trying how to use a factory in an e2e test, I decided to finally ask here. I have a factory defined, with some functions, as follows: regFormApp.factory('myFactory', ...
0
votes
0answers
14 views

How to fill combobox with angularjs and google apis?

I want to fill a combobox using angularjs and the googles apis, but I am doing something wrong. I am using a similar code that´s working, but nothing happend in this case. Here is my code Html: ...
0
votes
0answers
10 views

Get with angular js Cross-Origin Request block

it's been a week that I'm stuck on this problem; I connect to my server api and retrieve a cookie. I then do a GET to retrieve the json returning well Cookie session but I have a problem with Cross ...
0
votes
1answer
15 views

How to dynamically inject service into directive in angularjs

My directive is to build out a scaffolded table with a delete button. I have a service set up named Post, so when I call the directive I'm including a servicename property on the element. How do I ...
1
vote
1answer
20 views

Shortening a date with angular JS

I have a date coming across in this format: Tue, 05 Aug 2014 13:14:25 +0000 I need to trim the date so it reads Tue, 05 Aug 2014. I would like to trim off everything after the year. I am trying to ...
2
votes
1answer
19 views

angularjs ng-options select as custom object from the options array

I am trying to fetch 2 different ids from ng-options object list and map the same into select model on user select. The model is mapped properly but the value is not shown on select box. ...
1
vote
4answers
30 views

Create Isolated Scope using Directive

I have a set of clients, displayed on a form, which must have individual scopes (per client): View plunker here. Naturally, I would expect that creating a new directive, with isolate scope, would ...
1
vote
1answer
23 views

Enabling Angular JS in ONSEN pages

I have just started messing around with Onsen UI and Angular JS. I'm accessing a dessert.html, text/ons-template, via an ons-button, but the binded ng-model itemName is not being interpreted ...
1
vote
1answer
21 views

Angular JS ng-repeat in directive, ng-model not updating

I am trying to write a custom directive to style specific radio buttons to look like a select element with a size attr, but I am having trouble storing the user's choice on the scope. Please see code ...
0
votes
0answers
16 views

How to properly expose the results of my $http request in my service from my controller?

Right now I am passing back the full results of the $http request back to the controller. I do this so that I can show a local loading spinner, deal with any application errors returned from my API ...
0
votes
0answers
14 views

Calling an API with a websocket

I have a very simple application that consists of a frontend written in AngularJS and a API written using the Django Rest Framework. My application polls every x seconds an API endpoint to see if ...
0
votes
0answers
11 views

AngularJS directive for inputs described via objects

I need to be able to display inputs based on an array of objects that describe them. For example, this describes 2 inputs foo and bar: $scope.z.inputs = [{ name: "foo", hint: "Enter foo number.", ...
0
votes
0answers
15 views

AngularJS nested directive is not getting called

I am new to angularJS and I am creating nested directives. I have 2 questions for this post: a. Why the child directive is not getting called? b. How to pass the map reference ( java script variable) ...
-3
votes
1answer
16 views

Please suggest a method to display requested data in an html table before posting the html page [on hold]

•I am building an ASP.NET MVC application, and I have already retrieved the requested data from my SQL Server. •I have the batch of data that I would like to display, and I also have an html table ...
0
votes
0answers
17 views

get selected items from ng-grid

Hey thanks for checking out my question. I know that with ng-grid you can select rows and access them by using selectedItems..however I want to update the table once all the rows are selected and only ...
0
votes
2answers
15 views

Access local variable of another function in AngularJS

How can I access variables within another function? myApp.controller "RegistrationsController", ($scope, $location, $http, $modal)-> $scope.open = () -> # move to global modalInstance ...