angular / router

The Angular 1 Component Router
MIT License
665 stars 135 forks source link

Is it possible for a single component to provide multiple "templates" to be used in separate viewports? #368

Open spjohnston opened 9 years ago

spjohnston commented 9 years ago

I have a menu/toolbar viewport and a content viewport. The menu component has some common/static items on it that are common across all content (pages) of the application.

The component that gets plugged into the content viewport has some custom items that it would like to have added to the menu/toolbar. Is there a way for the current component that is in the content to provide a separate/second template that can be plugged into the menu/toolbar at the same time?

Everything I've seen/read up to this point looks like a component has a one-to-one mapping with a template so this would have to be achieved though some means other than routing, right?