Angular 2: Using a component in two diffrent ways: as target of a route and by selector <selector-my-component>
问题 This is a general question concerning Angular 2 (no source code here) In Angular2 components can be assigned as the target of a specific route of the router. The route /something/:myId might activate the "SomethingComponent". Meanwhile components can be pulled into other components by referencing the selector in the template like this: <something-component [myId]="'123'"></something-component> Is it ok to use one component in both ways? Can I distinguish within the component, how it was