Created
August 23, 2022 15:26
-
-
Save brandonroberts/58ea7e9340e23d12d0f32b6501d4daea to your computer and use it in GitHub Desktop.
Generated Route Config - Option 2
This file contains 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'; | |
import { provideState } from '@ngrx/store'; | |
export const routeConfig = { | |
title: 'Page Title', | |
providers: [ | |
provideState() | |
] | |
} | |
@Component({ | |
template: '' | |
}) | |
export default class ProductsComponent {} |
This file contains 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 { provideState } from '@ngrx/store'; | |
export const routes = [ | |
{ | |
path: 'products', | |
loadComponent: () => import('./products.ts').then(m => m.default) | |
title: 'Page Title', | |
providers: [ | |
provideState() | |
] | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment