Play 2.3.7 : how to use angular-ui-bootstrap webjar

179 views
Skip to first unread message

David Sanchez

unread,
Jan 20, 2015, 11:43:11 AM1/20/15
to play-fr...@googlegroups.com
Hi,

I've created a play 2.3.7 project with subproject.

I use bootswatch-cerulean (3.2.0-1) that provides a bootstrap theme. It works.

Now I want to integrate my own theme and use angular-ui-bootstrap (0.12.0) instead of bootswatch-cereluean.

I'm really new in playframework so does anyone have already integrated such a package in play 2.3.7 ? I don't find any sample.
And with this package, how can I custom the theme ?

Thanks

David Sanchez

unread,
Jan 21, 2015, 3:14:38 AM1/21/15
to play-fr...@googlegroups.com
My third problem is how to configure requirejs (the main.js) ...

David Sanchez

unread,
Jan 21, 2015, 4:04:40 AM1/21/15
to play-fr...@googlegroups.com
... and more precisely using a main.coffee file.

Something like this :

require.config
paths:
   ui-bootstrap: "../lib/angular-ui-bootstrap/ui-bootstrap"
   ui-bootstrap-tpls: "../lib/angular-ui-bootstrap/ui-bootstrap-tpls"
shim:
ui-bootstrap:
deps: ["angular"]
ui-bootstrap-tpls:
deps: ["angular"]


Can somebody help me to write main.coffee file ?

Marius Soutier

unread,
Jan 21, 2015, 5:26:20 AM1/21/15
to play-fr...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Sanchez

unread,
Jan 21, 2015, 8:29:31 AM1/21/15
to play-fr...@googlegroups.com
Thanks.

My main.coffee looks like :
require.config
paths:
core: "../lib/core/javascripts/core"
uibootstrap: "../lib/angular-ui-bootstrap/ui-bootstrap"
uibootstraptpls: "../lib/angular-ui-bootstrap/ui-bootstrap-tpls"
shim:
angular:
exports: "angular"
uibootstrap:
deps: ["angular"]
uibootstraptpls:
deps: ["angular"]

Is it correct ?

Compilation success. Note: if I use '-' char un path name (i.e if I write for example ui-bootstrap: "../lib/angular-ui-bootstrap/ui-bootstrap"), play failed to parse the coffee script)
Reply all
Reply to author
Forward
0 new messages