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',
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)
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
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
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
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
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
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
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
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:
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
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
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
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.
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
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
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.
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
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
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
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
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
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
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(){
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
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:
26 matches
Mail list logo