Skip to content

Instantly share code, notes, and snippets.

@brandonroberts
Last active August 23, 2022 15:27
Show Gist options
  • Save brandonroberts/5d816cab298ce3dd38deb91c8c30cb37 to your computer and use it in GitHub Desktop.
Save brandonroberts/5d816cab298ce3dd38deb91c8c30cb37 to your computer and use it in GitHub Desktop.
Generated Route config - Option 1
export default {
title: 'Page Title',
providers: [
provideState()
]
}
import { Component } from '@angular/core';
@Component({
template: ''
})
export default class ProductsComponent {}
import productsRouteConfig from './products.route-config';
export const routes = [
{
path: 'products',
loadComponent: () => import('./products.ts').then(m => m.default)
...productsRouteConfig
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment