I'm currently trying to build an Angular2 prototype (based on alpha44) of our Angular1 app (pretty complex one) and I'm trying to find the best model/data architecture when using routes and child routes.
In my example, from a child component created from a route, I want to access a property of the parent component (hosting the router-outlet
).
But when you create a component from a router-outlet
, you cannot use @Input
and @Output
anymore.
So what is the best practice to inject some data/properties, except basic routeParams
and static routeData
?
How do you communicate with the parent component without too much coupling?