Comments (6)
Happy to accept PRs :-)
from angular-seed-play.
I bumped the Play and Angular.js versions in this fork: https://github.com/nob13/angular-seed-play/tree/play221
But I cannot get the dependency to angular-routes correctly inside app.js (either it is included before angular.js or not at all). Since angular 1.2.x angular-routes has to be included separately. Any suggestions? (I am a require.js novice :/ )
from angular-seed-play.
Perhaps first wind back the version of Angular just to get things working.
That said... looks as though you'll need something like:
"webjars!angular-route.js"
near where the route is being used i.e.:
https://github.com/nob13/angular-seed-play/blob/master/public/js/app.js#L11
For example:
require(['angular', './controllers', './directives', './filters', './services', 'webjars!angular-route.js'],
Also why this line?
https://github.com/nob13/angular-seed-play/compare/play221#diff-fdc3abdfd754eeb24090dbd90aeec2ceR14
from angular-seed-play.
Thanks alot, I got the routes dependency working. Unfortunately the webjar doesn't seem to declare the dependecy from routes to angular.js (see Bug webjars/angularjs#30), so this is done by hand now.
The asset directory line: Oops, copied from another project, this did not worked anyway :/
from angular-seed-play.
webjars/angularjs#30 is fixed and will be released shortly.
from angular-seed-play.
Resolved by #7
from angular-seed-play.
Related Issues (9)
- Wiring additional web jars as Angular dependencies. HOT 14
- Demonstrate using requirejs optimized files? HOT 5
- Provide examples for loading other angular modules HOT 6
- Demonstrate testing angular code HOT 17
- Demonstrate automatically wiring up the webjars-requirejs.js of the dependencies files with play 2.3 HOT 5
- $locationProvider.html5Mode(true) HOT 3
- dependency to require.js web jar is required
- how to serve minized files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-seed-play.