Add mounting for activated routes, route compiling, routing

This commit is contained in:
2021-03-08 09:00:43 -06:00
parent 338b9be506
commit 3acc1bc83e
13 changed files with 314 additions and 12 deletions

View File

@@ -0,0 +1,14 @@
import {AppClass} from "../../lifecycle/AppClass";
export class RouteGroup extends AppClass {
private static currentGroupNesting: RouteGroup[] = []
public static getCurrentGroupHierarchy(): RouteGroup[] {
return [...this.currentGroupNesting]
}
constructor(
public readonly group: () => void | Promise<void>,
public readonly prefix: string
) { super() }
}