Open rkoch opened 9 years ago
I'm not opposed to publishing the new router for Angular 1 on bower, but I'm recommending that people use npm. It's generally a bit more sane, and the npm team is going to be working on improving npm for client-side use.
For Angular 2, I'm not sure we'll officially support bower at all. It's still yet to be determined.
as a side note i would recommend we wait to publish to places be it npm, bower, jspm 'til we formally name it, thus less confusion
:+1: for jspm
Could new-router be made available as CDN until this question is resolved?
The other Angular components seems to be made available in beta versions. I'm currently testing the new-router and it is the only component that I had to install locally.
You can always use bower to install packages from gitbub endpoints a la
bower install angular/router
On Mar 23, 2015 7:44 PM, "Urbanviking" notifications@github.com wrote:
Could new-router be made available as CDN until this question is resolved?
The other Angular components seems to be made available in beta versions. I'm currently testing the new-router and it is the only component that I had to install locally.
— Reply to this email directly or view it on GitHub https://github.com/angular/router/issues/199#issuecomment-85138428.
for cdn you could use
https://cdn.rawgit.com/angular/router/v0.5.0/dist/router.es5.js
Thanks for clarifying. I think it makes sense to publish it to bower for Angular 1 as soons as 1.4 is stable.
In the meantime I'll just install it directly from the git repo - thanks @PascalPrecht for the hint.
@hlobil Thank you, I'll try this.
+1
I use https://www.npmjs.com/package/ngcomponentrouter for jspm (and Angular.js 1.5):
jspm install npm:ngcomponentrouter
That works well for me.
I am wondering if you already published the new router (hopefully called rooter someday :wink:) to the bower registry? When I search for
angular-new-router
there are no results.And if it was not published, will it be someday? Or should I generally use
npm
for angular 2 modules?