tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wyraz <michael.wy...@evermind.de>
Subject Re: Tapestry 5.4 - Integrating angular
Date Thu, 07 Nov 2013 14:40:58 GMT
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:     michael.wyraz@evermind.de

HRB: 21586
Amtsgericht Leipzig

Geschäftsführer:
Christoph Klemm
Thomas Grünert
Michael Wyraz


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message