Skip to content

Instantly share code, notes, and snippets.

@brandonroberts
Created August 23, 2022 15:26
Show Gist options
  • Save brandonroberts/58ea7e9340e23d12d0f32b6501d4daea to your computer and use it in GitHub Desktop.
Save brandonroberts/58ea7e9340e23d12d0f32b6501d4daea to your computer and use it in GitHub Desktop.
Generated Route Config - Option 2
import { Component } from '@angular/core';
import { provideState } from '@ngrx/store';
export const routeConfig = {
title: 'Page Title',
providers: [
provideState()
]
}
@Component({
template: ''
})
export default class ProductsComponent {}
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