Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
402 Bytes
import type { Route } from '@angular/router'
// loadComponent lazily loads the component
// when the component is the default export, there is no need to handle the promise
export const routes: Array<Route> = [
{
path: '',
loadComponent: () => import('./components/posts.component'),
},
{
path: 'post/:postId',
loadComponent: () => import('./components/post.component'),
},
]