Introduction
๐๏ธโ๐๏ธโ@ng-frrri/router-middlewareโ๐๏ธโ๐๏ธ
Synopsis
What it looks like:
import { operate } from '@ng-frrri/router-middleware';
import { getMany, getActive, reset } from '@ng-frrri/router-middleware/operators';
const all = 'entities';
const posts = 'entities.posts';
const routes: Routes = frrri(
[
{
path: 'posts',
data: operate(
reset(all),
getMany(posts),
),
children: [
{
path: ':id',
data: operate(
getActive(posts),
),
},
],
},
]
);
Last updated