Skip to content

Instantly share code, notes, and snippets.

@rakia
Created May 22, 2024 21:01
Show Gist options
  • Save rakia/098c154a920539daaf0b8375f0aa6ec9 to your computer and use it in GitHub Desktop.
Save rakia/098c154a920539daaf0b8375f0aa6ec9 to your computer and use it in GitHub Desktop.
Angular routing: per-route renderMode
const routes: Routes = [
{
path: 'route1',
component: Route1Component,
renderMode: 'stategy1' // renderMode option 1
},
{
path: 'route2',
component: Route2Component,
renderMode: 'strategy2' // renderMode option 2
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment