Last active
August 23, 2022 15:27
-
-
Save brandonroberts/5d816cab298ce3dd38deb91c8c30cb37 to your computer and use it in GitHub Desktop.
Generated Route config - Option 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
title: 'Page Title', | |
providers: [ | |
provideState() | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
@Component({ | |
template: '' | |
}) | |
export default class ProductsComponent {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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