ang2 notes
authorBill Erickson <berickxx@gmail.com>
Fri, 17 Nov 2017 22:15:49 +0000 (17:15 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 17 Nov 2017 22:15:49 +0000 (17:15 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
NOTES.adoc

index 8c48a1d..03ccea4 100644 (file)
@@ -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]
 ------------------------------------------------------------------------
 <Directory "/openils/var/web/ang2">
@@ -117,7 +127,6 @@ import * as $ from 'jquery';
 </Directory>
 ------------------------------------------------------------------------
 
-
 === Development w/ Apache
 
  * https://github.com/angular/angular-cli/wiki/stories-disk-serve