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

Marker over Infobubble in google maps v3

I'm trying to put a google.maps.Marker object over (z-index positioning) an Infobubble object but i am having no success. Basically what i'm doing is assigning zIndex: n to the markerOptions object ...
0
votes
0answers
9 views

AngularJS blank default in select

I have a select element with six options, the first being a blank option: <select name="method-rcvd" class="form-control" ng-model="workRequest.ReceiveMethod" required > <option value="" ...
-2
votes
0answers
12 views

Passing array between functions

I'm having some problems understanding how $scope variables work. So, I have something like this: $scope.myArray = { 'v1' : null, 'v2' : 0}; $scope.f1 = function () { for(...) { f2(loopValue); ...
0
votes
0answers
3 views

Dynamically define ngModel *within* directive from objects/strings in to scope

I'm working on a module to manage the state of filter queries (plnkr). The primary goal being to maintain a link between a query key/value pair and a more descriptive label without a lot of ...
0
votes
0answers
6 views

best way to use moment.js to determine stock market opening and closing UTC time?

So this turned out to be a little trickier than I thought, and I know there are probably a thousand ways to do this (and better ways probably too). working through this I also realized there are some ...
0
votes
0answers
9 views

Factory method doesn't return - TypeError: Cannot read property 'then' of undefined

I'm stuck with this issue. I've learnt that my factory method is suppose to return but I've tried many different positions within the code for the return to no avail. My controller from which I'm ...
0
votes
0answers
8 views

laravel resource and angular http

Blog - RESTful Resource Controller route to the controller Blog Route::resource('blog', 'BlogController'); Simple query does not work $http.delete('/blog/1'); return 403 Forbidden ...
0
votes
0answers
6 views

Avoid DOM reload of wrapped jQuery plugin in AngularJS on change view

I have a single page application built with AngularJS. The views are managed through AngularUI Router. In some of these views, there are jQuery plugins that are called with AngularUI jQuery ...
0
votes
0answers
10 views

Angular and getting window scroll position in controller

I'm having some trouble understanding how to get the scroll position of window within my controller, so I can build logic around it. From all the questions and answers I've been reading the most ...
0
votes
0answers
8 views

How to permanently install MEAN.io package

I've installed a standard MEAN.io package to my project via the instructions here. The command line is like so: mean install <package-name> That added the package to my locally application ...
3
votes
1answer
22 views

Difference between & and = for passing functions to isolate scope

& is always described as the way to call a function on the parent scope inside a directive's isolated scope. However, since = creates two-way binding and a function is just another value, ...
0
votes
0answers
3 views

AngularJS & Jasmine - spyOn async service problems

I'm trying to unit test a controller which gets some translated strings through an async service, but I'm missing something on Jasmine vs Promises... Let's start with the error, which is: ...
0
votes
0answers
8 views

AngularJS “10 $digest() iterations reached” in Internet Explorer dealing with a custom filter

Our project is using a custom filter to provide sorting and filtering of items in a list. It takes two arguments, the list, and a filter type parameter that determines the sort/filter scheme to ...
0
votes
1answer
10 views

angularjs routes parameters issue

How I can get parameter from such url in angularjs controller: http://localhost:53315/Employee/{parameter}#/info Here's my angularjs code: $routeProvider .when('/info', { ...
0
votes
2answers
22 views

How to properly test an AngularJS Controller Function

We just started implementing jasmine tests in our AngularJS project and I have a question: We want to test this controller function: $scope.deleteClick = function () { $scope.processing = ...
0
votes
0answers
6 views

Angular Google Maps - WeatherLayer: celsius to fahrenheit

I am new to Angular and have been playing around with the Angular google-maps and their example in plunker https://angular-ui.github.io/angular-google-maps/#!/api . Applying the weather layer to the ...
2
votes
0answers
12 views

Get subobject with AngularJS

In my view : <span data-ng-init="fillEditForm['titi']='toto'" ></span> In my controller Angular : console.log($scope.fillEditForm); console.log($scope.fillEditForm['titi']); Result ...
0
votes
0answers
18 views

Define ending date from a date stored in local storage

I would like to calculate a ending date (user can't make a new demand until the first demand is not expired) like this : var dateNow = +new Date(); var dateDemand = +new ...
-1
votes
1answer
12 views

how to search for a fixed value when clicked on search button from a list which is already retrieved from database using AngularJs

I am using a search functionality to get the searched records from the list which is already retrieved from database and populated in html page,I am getting the filtered search but not complete search ...
-1
votes
0answers
18 views

Load multiple modules in a single app

How to load different modules in my angular app that has states in it .Any examples?Is lazy loading a better option?I tried with many lazy loading techniques but its not working..
0
votes
0answers
42 views

Could AngularJS be useful in my case? [on hold]

I have developed an asp.net application in C#(server-side). It runs on an IIS Server. Users can create reports with widgets(text, values, charts etc...). There is a date widget on the report. If ...
0
votes
1answer
20 views

Directive does not update on service model change

I have a service that contains my application's model: angular.module('adminClient').factory('myApi', function () { var model = {}; model.myObject = { label: 'New York City' }; ...
0
votes
1answer
12 views

Angular Bootstrap Carousel - Fit images to square box without stretching

I have an angular carousel with several images, all of which are not the same size nor have the same aspect ratio, how can I get the images to fill a black square box say 250x250 pixels without ...
0
votes
0answers
9 views

AngularJS controller injection coffee script generation error

I'm trying to understand why the following coffeescript generates a javascript with puts the statement referencing the $resource variable outside the function scope. Coffee script : controllers = ...
2
votes
2answers
29 views

How to bind javascript and ng-click event in html element using angular js?

I am trying to bind the following json response in my html page. The json is as follows: { "key":{ "text":"<p>For more information, please visit <a href = \"javascript:void(0);\" ng-click ...
0
votes
0answers
12 views

Use ngclik to update(increment) a category_id

I'm actually trying to bluid a one page site with ruby on rails 4 and angular. I want ng-click to increment category_id, but i m stuck before it can enter the loop. I looking for your advice. ...
0
votes
2answers
19 views

how to use $timeout in ng-click markup

I want to wait some time after click, then processed. i tried: <button ng-click="$timeout(save,500);">DO-IT<button> controller $scope.save = function() { // save. } no error ...
0
votes
0answers
20 views

angularjs and asp.net mvc routing issue

I'm using angularjs inside my asp.net mvc project and have the folowing link in the asp.net view: <a href="/Organization/Employee/@user.Alias#info">@user.Alias.ToUpper()</a> that gives ...
0
votes
0answers
10 views

AngularJS Batarang - What are interceptedExpressions?

I'm currently using the AngularJS 1.3.0 stable build and the Batarang Chrome extension. In the watch tree I notice that under many of my scopes there's something called "interceptedExpression". What ...
0
votes
1answer
29 views

Close browser window in Angular SPA

I've tried quite a few versions of the window.close() method trying to get around the "Scripts may not close windows that were not opened by script." error and have settled on the code below. I no ...
0
votes
0answers
5 views

MV* in Polymer, models and services as polymer-elements?

Say I want two views (polymer-elements) to share a model for example. In Angular the model would live in a singleton service that gets injected into the views, both views read from the same source. ...
1
vote
2answers
28 views

Visually show Angular scope changes when made programmatically

Is there a way to visually show when a scoped input value is changed programmatically? I have several input fields that are bound to various ng-model values, and these values change outside the ...
0
votes
0answers
12 views

How to color row on specific value in angular-ui-grid?

I'm trying to color a row depending on it's value in the new angular-ui-grid 3.0 rc12 but I haven't been able to. The following code used to work in the previous version (ngGrid): $scope.gridOptions ...
1
vote
1answer
22 views

How to implement a double animation in a ngRepeat? (move down the current items, fade in new item from right)

I am trying to implement the following animation: a list of items should move down the right amount of space for a new item to be added on top (variable height), and then the new item should move in ...
0
votes
1answer
18 views

Angular directive only work with ng prefix

I have following code which works fine directive payrollWeb.directive('ngEnter', function() { return function(scope, element, attrs) { element.bind("keydown keypress", function(event) { ...
0
votes
2answers
26 views

Chaining dependend promises and wait for all to resolve

I have already read some articles and questions about promises but I still have problems to get my head around them. Here's what I want to do: My application should request properties from a device. ...
0
votes
2answers
16 views

pass Json to a custom AngularJS Directive

I want to pass argument to a custom directive My directive is : phonecatApp.directive('demoDirective', function($compile) { return { template: '<div></div>', replace: ...
1
vote
1answer
24 views

Angular Services/Factories with $resource

I'm a Web Developer new to AngularJS. I've been reading @toddmotto's Angular styleguide (https://github.com/toddmotto/angularjs-styleguide). I am currently building a CRUD app grabbing data via a ...
0
votes
0answers
8 views

Express Render error when pushing to heroku

I'm trying to push a small app (built on top of Daft Monk's angular-passport https://github.com/DaftMonk/angular-passport) to a heroku server I set up. My Gruntfile has a grunt heroku task, which ...
0
votes
1answer
19 views

AngularJS v1.2.16 bug when using IE?

This piece of code : if (window.angular.bootstrap) { //AngularJS is already loaded, so we can return here... console.log('WARNING: Tried to load angular more than once.'); return; } ...
0
votes
1answer
21 views

AngularJS filter nested ng-repeat based on repeated object properties

I have an array of restaurant objects and I want to list them by grouping their cities My object is like; restaurant = { id: 'id', name: 'name', city: 'city' } This HTML Markup can ...
0
votes
0answers
14 views

Single web page - auth and rest

I want to build single page web application. For that I want to use angularJS and API with token authorisation. I want it to be max secure. I can't find a good explanaiton (tutorial) of that issue so ...
2
votes
3answers
42 views

button can not be clicked with ng-click

When I run this plunker I press the arrow-down of the dropdown and I assume that the dropdown list pop ups now but it does not In my browser console I have no error. Why can the dropdown not be ...
0
votes
2answers
19 views

Overlapping angular apps/building a 3rd party widget with angular

I'm building a third party widget that will be loaded onto multiple sites. I'm using angular for implementation, with a build script that wraps my angular so it doesn't interfere with any other ...
0
votes
1answer
13 views

ng-table pagination, sorting and filter not working

I am trying to use ngTable but its not working as expected. I've implemented pagination, sorting and filter Here is a plunker i have created. I have done same way as specified in the docs examples. ...
-4
votes
0answers
22 views

how to download a zip file from a web service url and unzip it using javascript?

I have a web service which returns a zip file which I need to save on a specific folder of the project on the disk, unzip and store the url of the files in database. Its for a angular JS project which ...
0
votes
1answer
19 views

Changing CSS Dynamically in Angular Directive?

I have a directive that I am currently making that is an input field of type text. Now I would like this field's width to grow dynamically if the text gets too big for the input field. Below is my ...
0
votes
1answer
30 views

How to Create nested objects in isolated scope

So I want to create a nested struture on my nested scope inside a directive like this: angular.module('myAddress').directive('myAddress', [function () { return { restrict: 'AE', ...
1
vote
0answers
20 views

How do I use expressions outside of ng-repeat scope?

I'm making a job board built in AngularJS and Craft CMS. Users can register, login and create a job posting. The job postings are being fetched from a json file and displayed on the index page using ...
-2
votes
0answers
7 views

Empty ASP Projrct vs. Angular.js eith MVC ASP

what are the advantages disadvantages using Empty ASP Project and what are the advantages disadvantages using Angular.js eith MVC ASP Thank you!