Hi,
I could solve it - just needed to bootstrap angularjs manually:
- remove ng-app from my html
- add initializer code:
angular.bootstrap(document.getElementById('myapproot'),[MyApp']);
Hello Thiago,
thank you for fast reply. I'll check this as soon as my app runs.
At the moment I try to get angularjs to work as module. A while ago you
wrote that you already did this and solved the problems.
What I've done:
- downloaded angular.zip, extracted to META-INF/assets/angular
- added a new JavaScriptModuleConfiguration named "angular" that points
to angular.js
- changed my initializing code to
require(["angular","jquery"],function() {
var app = angular.module('MyApp', []);
...
Angularjs bootstrapsbut fails to find the module. I found that it starts
with bootstrapping before my "var app = angular.module" code is called.
Any idea what's going wrong there?
Regards,
Michael.
--
Mit freundlichen Grüßen / Regards
Michael Wyraz
evermind GmbH
Schorlemmerstraße 1
04155 Leipzig
Tel.: +49 (0)341-25 39 66 - 0
Fax: +49 (0)341-25 39 66 - 1
Funk: +49 (0)177-73 00 00 3
E-Mail: [email protected]
HRB: 21586
Amtsgericht Leipzig
Geschäftsführer:
Christoph Klemm
Thomas Grünert
Michael Wyraz
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]