Angular-cli: Switch to deprecated router until new router is ready

Created on 24 May 2016  路  4Comments  路  Source: angular/angular-cli

The CLI and devs generally should use the deprecated router for now.

The _true_ new router is in development. The RC router (in the @angular/router library) is not release quality and is frozen. The _new_ new router will replace it.

This is a short term road bump.

c/ @hansl

medium (days)

Most helpful comment

Seeing as there are many options for routers, would it be beneficial to have flags to identify which router blueprint to use? Keep the default as whatever the current @angular/router is, and add flags after that for --router-deprecated --ui-router --ngrx-router etc.?

Edit: Thinking some more about it, it would probably be better to specify this during the init step than every time you go to generate a route, would be better if it was a project variable that gets added to angular-cli.json

All 4 comments

I agree on this one. Played around with the current rc1 router and it has fewer features than the deprecated one.

Seeing as there are many options for routers, would it be beneficial to have flags to identify which router blueprint to use? Keep the default as whatever the current @angular/router is, and add flags after that for --router-deprecated --ui-router --ngrx-router etc.?

Edit: Thinking some more about it, it would probably be better to specify this during the init step than every time you go to generate a route, would be better if it was a project variable that gets added to angular-cli.json

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brtnshrdr picture brtnshrdr  路  3Comments

ericel picture ericel  路  3Comments

MateenKadwaikar picture MateenKadwaikar  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments

rwillmer picture rwillmer  路  3Comments