If you have followed Angular 2 genesis, you maybe remember a video showing a component router early version demo with a component loading itself infinitely.
I reproduce it there:
This is useless but funny and it helps to understand the power of this new router.
In few times, we will see open source librairies coming with their own routes to plug where we want in our application.
That’s a big step forward!
It will be possible to have
async route too for lazy loading.
An other killer feature of this new router are
auxiliary routes. It will be possible to have parallel routes with their own history (back / forward).
aux routes are not fully usable currently in alpha 45.
Here is the specific code:
Can’t wait for the first beta!
I’m playing a lot with ng2 these times and it’s REALLY AWESOME!
I will post others experiments soon.
You can now directly play with ng2 alpha inside Plunker following this: