On Fri, 09 Jan 2015 15:53:08 -0200, nhhockeyplayer nashua
<nhhockeypla...@hotmail.com> wrote:
Ok I see what you meant
in my AppModule.java
public static void contributeJavaScriptStackSource(
MappedConfiguration<String, JavaScriptStack> configuration) {
configuration.addInstance(CustomJavaScriptStack.STACK_ID,
CustomJavaScriptStack.class);
}
}
Yep, you've added a JavaScript stack, but this doesn't mean it will
actually be included automatically in all pages. You still need to @Import
it in the pages and components you want to use it.
<script>
if (typeof angular == 'undefined')
alert('angular did not load properly');
</script>
I've never used Angular.js myself but, in a page in which Require.js is
loaded, shouldn't you use var angular = require("angular") because it
won't set a global object? Anyway, if the .js file for Angular.js file is
already included in the page, Tapestry already did its job.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org