-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular is not defined when using requirejs #67
Comments
You need to define it in your require path and include a shim:
|
Thanks. |
I somehow managed to fix "something". A lot of trial and error... |
Yeah I went through the no timestamp issue this morning too! Heres my solution:
put this at the top of your test-main.js (or whatever) require config |
Thanks :)
|
The solution was more "elegant"... I've created a new cesium_test.js for the tests with the ammended paths in the |
@sparmboy - regarding the "shim" solution. Do I need to define this for all of my template files? I have a LOOOOT of those... |
@yccteam Unfortunatey yes, that is the only way Ive managed to get it working. It'd be great if the |
@yccteam - I'm going through the same issue with 'angular not defined'. Can I see how you went about to resolve this? I have a module name defined in the ngHtml2JsPreprocessor and placed the module in the path and shim of test-main.js, but it still doesn't work. |
I'll be at the office tomorrow so I could have a look at my code.
|
What I did eventually was to use requirejs!text plugin in order to load my template files, and then I |
I've read two issues here, but the solutions don't work for me.
When I run the karma start regularily it says:
angular is not defined
Then, when I add:
public/lib/angular/angular.js
To the
files
property I get:Warning tried to load angular twice
And I also get:
Unexpected request: GET TEMPLATEFILEPATH
Any idea how to solve this?
The text was updated successfully, but these errors were encountered: