Angular: Dynamic router-outlets

Created on 31 Oct 2016  ·  1Comment  ·  Source: angular/angular

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Let say we have this code:
``` @Component({ selector:'my-app', template:

Chess





`
})
class Chess {}

````
It doesn't work and it is right. Attribute in router-outlet directive is like a 'const' modifier in typescript. You can set it only manually in a template.
But what if I develop application and set routes and outlets dynamically. How expensive it will be to allow router-outlet directive to be dynamic?

router feature

Most helpful comment

It should work once the following is implemented:
https://github.com/angular/angular/issues/12522

>All comments

It should work once the following is implemented:
https://github.com/angular/angular/issues/12522

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lacolaco picture lacolaco  ·  183Comments

jamesmfriedman picture jamesmfriedman  ·  114Comments

michalstepien picture michalstepien  ·  113Comments

antonybudianto picture antonybudianto  ·  122Comments

arpit-agarwal picture arpit-agarwal  ·  111Comments