[AngularJS] Help with unit tests. Variable undefined.

2014-02-11 Thread christoph . fanelsa
Hallo. I need your help with unit testing my AngularJS work. The app modul var app = angular.module('App', [ 'AppCtrl' ]); The controller modul var appCtrl = angular.module('AppCtrl', []); The controller I want to test. appCtrl.controller('SignalListCtrl', ['$scope',

[AngularJS] Re: base directory for templates without base href ?

2014-02-11 Thread Egor Kh AlataR
Same problem. Want to load templates from CDN. Any ideas? среда, 21 ноября 2012 г., 22:55:54 UTC+6 пользователь Julien Ricard написал: Hi, I would like to use templates that are not located in the root directory. I don't want to use a global variable or base href (which is really ugly)

Re: [AngularJS] Re: Displaying an Error Pop up

2014-02-11 Thread Raul Vieira
Use an alert. No css required and it will be centred. Raul Sent from my iPad On Feb 11, 2014, at 1:56 AM, Sander Elias sanderel...@gmail.com wrote: Varun, As I said before, use an image, or an SVG. That are the alternatives you have if you recline the use of CSS. Regards Sander

Re: [AngularJS] How to make POST requests from Protractor?

2014-02-11 Thread Arve Knudsen
I am trying to perform integration tests, with a real database. I've always included the database when integration testing, and I don't see any reason to start mocking it now. What do you mean by injecting the service? Injecting an Angular service within the Protractor test? If that's what you

[AngularJS] Re: Developing an overlay-driven application (similar to Google Analytics In-Page Analytics)

2014-02-11 Thread Timmy O'Mahony
Thanks for the detailed reply Sander, it's beginning to get clearer. I've done a bit of research and I'm starting to see that what I want is possible with a simple iframe; the iframe and the containing document can communicate with the HTML window.postMessage API. This makes packaging and

[AngularJS] meeting pre anouncement

2014-02-11 Thread Sander Elias
Hi All, We are preparing a meeting here in the Netherlands, the 4rth of march. watch this space if you are interestedhttps://plus.google.com/events/cfls4028jcoq43lj1h253r95mes ! Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] event after angular has done its work and is idle (after digest loop)

2014-02-11 Thread Martin Kuhn
HI, I'm looking for a way to be informed when angular has finished the digest loop and is idle. Is there a way how this can be achieved. TIA Martin -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] Re: event after angular has done its work and is idle (after digest loop)

2014-02-11 Thread Sander Elias
Hi Martin, What is it you are trying to accomplish? What is your use-case for this. Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop receiving emails from it, send an email to

[AngularJS] Triggering angular's popup - on keypress events

2014-02-11 Thread Varun Krishna Parthasarathy
Hi all, I have a text box and I would like to learn how to trigger angularjs popup when the user hits enter on his/her keyboard. Thanks, Varun Krishna. P -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] Unit test failing on a Controller when I have $rootScope.appName.toUpperCase() in a Service that's injected into the controller

2014-02-11 Thread chandra sekhar veera
The $rootScope.appName is set inside the run block, which could be the reason the test case is failing, but I'm not sue. Here's the error trace, PhantomJS 1.9 (Mac) LOG: 'Login controller!' PhantomJS 1.9 (Mac) Login controller tests: LoginCtrl has been instantiated FAILED TypeError:

[AngularJS] Re: Triggering angular's popup - on keypress events

2014-02-11 Thread Michael Bielski
Angular-UI does that pretty easily: http://angular-ui.github.io/ui-utils/#/keypress -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop receiving emails from it, send an email to

[AngularJS] Re: Unit test failing on a Controller when I have $rootScope.appName.toUpperCase() in a Service that's injected into the controller

2014-02-11 Thread chandra sekhar veera
Ok, problem solved!!! I've used angular.uppercase($rootScope.appName), instead of using the native API. On Tuesday, February 11, 2014 1:05:16 PM UTC-5, chandra sekhar veera wrote: The $rootScope.appName is set inside the run block, which could be the reason the test case is failing, but I'm

[AngularJS] Re: event after angular has done its work and is idle (after digest loop)

2014-02-11 Thread Martin Kuhn
Hi Sander, I would need it for testing with Selenium / cucumber in a Java environment. Currrently we wait a certain amount oft time... Regards, Martin -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] nq-quiz: a monthly Angularjs programming challenge in spirit of the Ruby quiz

2014-02-11 Thread anappisart
Hi I just wanted to share that I am posting a monthly programming challenge for Angularjs. Over time I will explore different aspects of the framework and other popular libraries in the JavaScript ecosystem.

[AngularJS] Re: Feedback on my modules please

2014-02-11 Thread Matthieu Drula
Well i ll make two js fiddle so it ll be easy to test! Le mardi 11 février 2014 21:00:52 UTC+1, Matthieu Drula a écrit : Hey guys, I started to do some open source, could you please have a look at my modules and give me some feedback please? https://github.com/matthieu-D One is about

[AngularJS] Re: famo.us integration

2014-02-11 Thread Tim Kindberg
I feel like you'd have to ditch angular's rendering and parsing capabilities but perhaps keep its overall DI support. On Tuesday, December 10, 2013 12:34:53 PM UTC-5, Martin Vavrovic wrote: Hello, So, according to the Famo.us guys, Angular can't be supported by their engine

[AngularJS] Resource GET request not reaching server

2014-02-11 Thread Jeffery Swensen
What would cause an ngResource GET request to not reach the server? The request is listed as Pending in Chrome Dev Tools and no matter how long I wait, the server never actually receives the request. -- You received this message because you are subscribed to the Google Groups AngularJS group.

Re: [AngularJS] Resource GET request not reaching server

2014-02-11 Thread Kevin Shay
On Tue, Feb 11, 2014 at 3:36 PM, Jeffery Swensen jeffswen...@gmail.comwrote: What would cause an ngResource GET request to not reach the server? The request is listed as Pending in Chrome Dev Tools and no matter how long I wait, the server never actually receives the request. Some Chrome

[AngularJS] Re: ngModelController Woes

2014-02-11 Thread Rhett Lowe
Sander, the main reason I am using ngModelController is to cut down watchers double calling. Also there is a significant amount more that happens to besides just $render(). I could potentially copy the whole $watch function (below) into a new directive controller, but I am trying very hard NOT

[AngularJS] Reloading an angular view?

2014-02-11 Thread Zach Schneider
I have an angular application that i'm trying to use impress.js inside of. I've been able to overcome the issue with url hash conflicts, the only issue I have is with initiating the impress.js. The impress page is a link at the top of the navigation. I want to be able to move from that page

[AngularJS] Re: AngularJS; Parse Current URL PathName to Pull Out Parameters

2014-02-11 Thread Luke Kende
So... why can't just get it from $routeParams? If there's something non-angular that you need, you can always access the window.location object and parse the path your self. On Tuesday, February 11, 2014 3:54:02 PM UTC-7, Cody Carlson wrote: Hi, I need to be able to pass a URL pathName to

Re: [AngularJS] Resource GET request not reaching server

2014-02-11 Thread Luke Kende
A GET request is fairly easy to verify: 1. You can copy and paste the full url directly into the address bar. 2. If you are on Linux or Mac, you can use cURL (or wget) on the command line and see if it's getting there. 3. Worst case you can use WireShark to inspect network packets. Sounds to

[AngularJS] Re: put parts of the application 'to sleep'

2014-02-11 Thread Luke Kende
This question sounds like you are trying to fix the symptoms instead of the source. A watch doesn't trigger unless something causes it to. Personally, I gained a performance boost when I rethought and recoded the way the way I used angular's built-in directives. For example, I had a ng-class

[AngularJS] Re: Passing variables from one page to another

2014-02-11 Thread Luke Kende
Yes. Use a service. If it's not working for you then you are coding it wrong. My guess is not understanding object inheritance and losing a reference to primitive values My examples are not full blown, but hopefully the details will help you see what you need: function EmailService(){

[AngularJS] AngularJS $http.post responses activated much faster if periodic $rootScope.$digest in effect

2014-02-11 Thread Thanassis Tsiodras
In our very large and quite complex AngularJS application, I noticed (by accident!) that a line like this in my main module setup... application.run(function($rootScope) { window.setInterval( () = { $rootScope.$digest(); }, 1000); }); ...has significant positive impact, in the

Re: [AngularJS] Re: Passing variables from one page to another

2014-02-11 Thread Yonatan Kra
Hi, Thanks. That's roughly what I did. I have 2 questions. The simple one: Are you handling the views from the controller itself (by changing the view in the service)? The more complex one: Let's say I have this route defintions: 1. $routeProvider.when('/inbox', { 2. templateUrl: