fengzilong/regular-router

make routes option more readable

fengzilong opened this issue · 0 comments

use nested structure

[
    {
        path: '...',
        component: App,
        children: [
            {
                path: '...',
                component: Settings
                children: [
                    ...
                ]
            }
        ]
    }
]

instead of

{
    'app': ...,
    'app.settings': ...
}

maybe it's hard to understand at first glance if you didn't use stateman before