Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup input bindings for a component when it's created by router-outlet?

When a component is created by the router how can I setup property bindings?

like image 207
Kugel Avatar asked Jan 07 '16 05:01

Kugel


1 Answers

It is not supported to use bindings for components added by the router. See also this discussion https://github.com/angular/angular/issues/4452

Use a shared service to communicate with components added by the router. For details see https://angular.io/docs/ts/latest/cookbook/component-communication.html

like image 153
Günter Zöchbauer Avatar answered Oct 14 '22 06:10

Günter Zöchbauer