From: Bill Erickson Date: Fri, 17 Nov 2017 22:15:49 +0000 (-0500) Subject: ang2 notes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=67c8681954a37abb10b89b890e9d1d7ef77ae0d8;p=working%2Frandom.git ang2 notes Signed-off-by: Bill Erickson --- diff --git a/NOTES.adoc b/NOTES.adoc index 8c48a1d1c..03ccea41f 100644 --- a/NOTES.adoc +++ b/NOTES.adoc @@ -110,6 +110,16 @@ import * as $ from 'jquery'; * Assumes ng-build is compiling to /openils/var/web/ang2 (or symlinked) * Another nod toward going all angular .html / no TT2 or EGWeb required. +== Nested routing + +* No need to call egStartup.go() in every component, it will already + have run before every component is even loaded using resolvers. + Resolvers proceed as expected, from the base components out to the + children. + +* Base routes defined in root, child routes defined in child routing + module, and on down. + [source,sh] ------------------------------------------------------------------------ @@ -117,7 +127,6 @@ import * as $ from 'jquery'; ------------------------------------------------------------------------ - === Development w/ Apache * https://github.com/angular/angular-cli/wiki/stories-disk-serve