0
votes
1answer
9 views

How do get information from a populated dropdownlist before calling a method to fill the details grid?

What is the proper way to do this ? Here are the statements one after another but since javascript is async I am guessing $score.lastItem does not exist when the 2nd function is called? So Do I put ...
0
votes
0answers
5 views

CSS offset increments with AngularJS

In my Angular app I have a div whose left offset I'd like to increase by 90px every time the slideThis() function gets called. In jQuery I'd do this by specifying something like left: '+=90', however ...
0
votes
0answers
9 views

Angularjs not minified reference errors

I am including "not" minified libraries like this: <script type="text/javascript" src="lib/js/angularjs/angular.js"></script> <script type="text/javascript" ...
0
votes
1answer
15 views

AngularJS Scroll to ID using routeParams

I'm making a single page app, that has subpages. The idea is, I have urls e.g home, about and contact. Each page then has multiple blocks. The blocks are set a minimum height, when page loads. The ...
0
votes
0answers
10 views

AngularJS: need help writing ng-change's version reacting on space character

By default, angular doesn't change the model for values, whose trimmed content is empty. But for some reason I need an action in my app, when the user presses just space. So I need a directive, which ...
0
votes
0answers
15 views

Trouble Setting Up Skeleton Angular Application

I keep getting this error while trying to set up this skeleton application. I have no idea how to fix it sadly. Any input would be much appreciated. I'm just trying to get the darn thing up. ...
0
votes
0answers
14 views

AngularJS Dynamic Create Model

I'm using ng-model in combination with angular drag drop. The drop target model is an array of items. My drag target is a model that represents a object definition I'm wanting to drop. On drop ...
1
vote
1answer
14 views

compile a directive passed from a scoped variable consumed by another directive AngularJS

I am trying to use a HighlightJS directive on <pre> blocks rendered by a Markdown directive from a scoped variable, which is a follow up from this question. Here is an plunker recreating the ...
1
vote
0answers
10 views

Leave animation on ng-include with dynamic source

I have a ng-include which is loading content based on a dynamic url (working as expected). <ng-include class="my-content-area" src="templateUrl"></ng-include> The problem comes when I'm ...
0
votes
0answers
9 views

Linking and controller function of directive which is represented as an attribute of another directive don't work

Have the following problem. I want to make two directives. One of them will be an attribute for another. Something like this. <html> <title>Directives</title> <head lang="en"> ...
0
votes
0answers
13 views

AngularJS : assign asynchronous data to an array element in a for loop

I'm trying to assign array elements in a for loop with asynchronous results of a call to a ngResource action. for ( var i = 0; i < projs.length; i++) { $scope.projets[i].redacteur = new ...
0
votes
2answers
17 views

angluar ng-repeat: conditional html

tr.row(ng-class="{editing: is_dirty(p)}" ng-repeat="p in persons") td {{p.name}} td {{p.surname}} if is_dirty(p) button.action Save else button.action Edit button.action Delete I am ...
0
votes
0answers
25 views

ng-repeat does not update when adding to an associative array using bracket notation

I am new to Angular and I am trying to add/push an item into an associative array. However, when I use bracket notation, the data in ng-repeat does not update. I have no idea why. In JS/coffee ...
0
votes
0answers
9 views

Chrome Packaged App - Message passing from background.js to another script page

I'm making a Chrome Packaged app using AngularJS and I'm simply attempting to send a message from my background script ("runtime.js") to another javascript file in my project. Manifest.json { ...
1
vote
0answers
34 views

angular.js directive templateUrl fails to bind scope

I'm creating a directive that will display and show content by listening to the $routeChangeError event on $rootScope. I got it all to work by inlining the template like this: app.directive("alert", ...
0
votes
2answers
20 views

Assure that the data is loaded in a view without an individual request

I'm pretty sure there must be an elegant solution for that pattern in angular, I just can't see it. The problem: All data is loaded once in a bulk on the start of the application. The user requests ...
0
votes
1answer
16 views

Return all values from indexedDB database objectStore

Simply trying to write a 'selectAll' method that takes the objectStore name as a parameter and returns ALL its containing key/value pairs, rather than simply running a callback on each iteration of ...
1
vote
3answers
28 views

Why is this Angular model not completely overwritten?

I'm encountering a strange issue where a model is not completely overwritten after a new property has been set on it in a directive. HTML: <div ng-app="app"> <div ...
1
vote
0answers
11 views

angular-route-segment calls previous controllers

I started to use angular-route-segment for nested views. But I have a problem. When I route to another segment, it calls previous controller. Here is my problem ...
0
votes
1answer
35 views

AngularJs with large JSON array

Ok so I'm developing an application that has a Parent-Child hierarchy using AngularJs to bind the data received from the RESTFUL web service to the view. An example of the JSON the web service would ...
0
votes
0answers
14 views

angularjs: how to mock $rootScope in unit test

I have a unit test that looks like this describe('Interceptor: myInterceptor', inject(function($rootScope){ var rootScope, routeParams = { id: null }; beforeEach(module('MyApp', function ...
1
vote
3answers
32 views

How can I add an array to an object but filter out all but one column for each array element?

I have an array on my page called answers that looks like this: answers[{x: 1, r: true;},{x: 2,r: false;},{x: 3, r: true;}] Hopefully I wrote this correctly. There are a variable number of rows in ...
0
votes
0answers
14 views

ng-grid how to remove hash in URL

I'm ng-grid and angular and the minute I go to the link http://somelink.com/html/dq.html it automatically adds the following: http://somelink.com/html/dq.html#/dq.html I think this done by ng-grid ...
0
votes
2answers
27 views

AngularJS returns variable name in curley brackets, not the value

This may be very simple but I can't find the appropriate documentation to explain how to overcome my issues, here goes: I have a repeater that is like so... <tr ng-repeat="thing in things"> ...
0
votes
2answers
30 views

How to structure an AngularJS function that will be used over multiple pages?

So far all of my AngularJS has been on one page, and within one controller. Now I need to build a way to dynamically tooltips across all 6 pages- 5 pages that currently have no controller, and 1 page ...
1
vote
2answers
31 views

ng-repeat inside UL (which is inside a P) is not working

UPDATE: It seems Angular.js doesn't like the <ul> inside a <p>. So, as helpful commenters said, replacing the <p> with a <div> solves the problem. Sorry if this may be a ...
0
votes
0answers
11 views

How to e2e test an Angular/Umbraco hybrid application with karma and ng-scenario

We are using an Angular/Umbraco hybrid app for an online order procedure and now we want to set up e2e tests based on karma and ng-scenario. The thing is that there are steps in the process that are ...
1
vote
1answer
14 views

Trigger event in another ng-view after $location.path() has changed

I want to trigger an alert in another view after $location.path() has changed the ng-view (without using $rootScope). In my controller trigger event I have : $location.path('/'); ...
-2
votes
0answers
31 views

Which Javascript MVC Frameworks for Twitter Bootstrap? [on hold]

I have a single-page web application built on Bootstrap Twitter, jQuery and jQueryMX as JavaScript MVC framework (jQueryMX is part of JavaScriptMVC). Now I'd like to change the MVC framework and ...
0
votes
1answer
24 views

Should I use some Javascript MVVM framework or use old style way of building app? [on hold]

I know Knockout.JS and Angular.JS at the intermediate's level. It is great for building Single Page applications. However, my new project is going to be very large and would last almost 3 years ...
0
votes
0answers
19 views

Angularjs preventing multiple browser instances of the same template?

Is there some mechanism in angularjs that prevents multiple instances of the same controller and template from being open? I'm working on a app which opens multiple windows via window.open and uses ...
0
votes
1answer
15 views

Showing the bootbox with the angular js data binded form

I started using Angular JS just 2 weeks back and is very much amazed with the data binding feature of it. Also I am very fond of using bootboxjs to show the messages and all the info to the user. I ...
0
votes
1answer
28 views

Using scope values with filters

I am in the need of a filter that filters the shown results within a table, using ngRepeat. I want to filter those results based on a user input. At this point, i am doing things like this: //HTML ...
1
vote
1answer
35 views

How to implement automatic view update as soon as there is change in database in AngularJs?

I am using AngularJs with Grails framework and using Mysql as Database. I want to implement feature like automatic view update as occur on Facebook. Till now i am able to send JSON data to angular ...
0
votes
0answers
54 views

Getting previous values from windows.print() in javascript

The Problem: When ever I choose the print button then this code will work and pop up for print appears after choosing print it's working fine. The problem is, if I choose the Cancel button of ...
0
votes
0answers
8 views

Youtube autoplay not working in iphone. How to play youtube video using customized play button in iphone

I have used the below object tag to html inner elements its being played in desktop browsers but not in iphone. function play_video(){ $("#vid_url").html('<object objecttag="" ...
1
vote
2answers
43 views

AngularJS - Difference between ng-grid and data-ng-grid

I created a ASP.NET MVC 4 project using AngularJS template available for VS2012. In one of the pages, the grid is coded in html like <div class="grid-style" data-ng-grid="userGrid"> ...
0
votes
1answer
26 views

Angularjs creating questionaire that allows ranking choices

I'm creating a questionaire for users that allow them to choose and rank personality attributes that best match them. There are three choices in each row and everytime they click on a choice it ...
1
vote
3answers
38 views

How to unserialize JSON data in Express/Node.js

So I have on the client side within a controller: $scope.authenticate = function() { var creds = JSON.stringify({email: this.email, password: this.password}); ...
0
votes
0answers
8 views

How to use $httpBackend.passThrough() with Karma unit tests

I've looked up and down and tried all kinds of things to make the E2E passThrough() actually work. Only examples are for templates. I don't think it actually can work but if someone has ever seen a ...
-2
votes
1answer
26 views

getting all true keys from object using angular and/or underscore

I have an object in Angular looking like this: $scope.addEmployeeDepartments={ 5066549580791808=true, 6192449487634432=true, 7192449487634432=false} How do I generate a comma-separated string like ...
0
votes
0answers
19 views

404 Error with Karma/Angular

Hopefully someone can point me in the right direction. I have removed all $httpbackend stuff from angular mocks in an attempt to get Karma to test with real $http calls. If, inside my Mocha test I do: ...
2
votes
1answer
33 views

dropdown in navigation bar does not expand (bootstrap, angular, directives, routes)

For some strange reason the bootstrap menu dropdown is not expanded on click when it is constructed through router template. Being used directly in the template it works fine. Here is the plunker to ...
0
votes
0answers
14 views

Unit test of $cacheFactory removeAll() in service failing in Angular 1.2.0 but working in 1.0.7

I have a unit test for an Angular service in which I test that a cache $cacheFactory is cleared after a call has been made for a save() method that does an http post to the backend. In 1.0.7 this test ...
1
vote
2answers
24 views

Angularjs - disabling AND unchecking a checked box

I have a complex set of checkboxes in groups filled with data from multidimensional arrays and there are some specific things that need to happen with them... I extracted the minimum of what I need so ...
2
votes
1answer
25 views

Angular UI-Select Dropdown Value Issue After Angular 1.2 Upgrade

We just upgraded Angular from 1.2 RC 2 to 1.2 final and upgraded select2.js from 3.4.0 to 3.4.3.1. Now I'm noticing some dropdowns not displaying their values correctly. The dropdown value is ...
1
vote
1answer
22 views

AngularJS - Inject provider to module.config

What I'm doing wrong? According to documentation, I should be able to inject the provider to module.config...but I'm getting an error - "Unknown Provider" http://jsfiddle.net/g26n3/ (function () { ...
2
votes
1answer
18 views

Change included page and URL without re-initializing controller in AngularJS

I am making an application using AngularJS and want to be able to switch between "tabs" and swap back and forth different "partials" or html templates into a panel/container (using ngInclude). Here's ...
0
votes
1answer
20 views

AngularJS RouteProvider not working correctly

$routeProvider.when('/home', { templateUrl: 'index.php/projects/projects/contact', controller: 'home' }); $routeProvider.otherwise({ redirectTo: '/home' }); I cannot seem to get the ...
1
vote
1answer
29 views

What changed with AngularJS 1.2.0-rc.3 that stops ng-click from having the right model value?

We have some code in an ng-click that broke with version 1.2.0-rc.3 because the value in the scope hasn't been updated from the click. Here's a dumbed down version: HTML: <div ng-app="" ...

15 30 50 per page