Git Product home page Git Product logo

Comments (6)

huntc avatar huntc commented on July 18, 2024

Happy to accept PRs :-)

from angular-seed-play.

nob13 avatar nob13 commented on July 18, 2024

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.

huntc avatar huntc commented on July 18, 2024

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.

nob13 avatar nob13 commented on July 18, 2024

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.

jamesward avatar jamesward commented on July 18, 2024

webjars/angularjs#30 is fixed and will be released shortly.

from angular-seed-play.

jamesward avatar jamesward commented on July 18, 2024

Resolved by #7

from angular-seed-play.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.