问题
When a component is created by the router how can I setup property bindings?
回答1:
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
来源:https://stackoverflow.com/questions/34647918/how-to-setup-input-bindings-for-a-component-when-its-created-by-router-outlet