From: Bill Erickson Date: Tue, 1 May 2018 13:31:06 +0000 (-0500) Subject: ang2 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7ed80e710e06894027bdc56dbb35a1a5cd9d4221;p=working%2Frandom.git ang2 Signed-off-by: Bill Erickson --- diff --git a/ang2-preso.adoc b/ang2-preso.adoc index b4a407d6e..150ab5b55 100644 --- a/ang2-preso.adoc +++ b/ang2-preso.adoc @@ -49,6 +49,21 @@ A complete redesign and rewrite of AngularJS. * Integrated ReactiveX library for JavaScript (RxJS). * ng-cli Command line tool for compiling, testing, building. +== Lazy Loading + +[source,js] +---------------------------------------------------------------------- +const routes: Routes = [ + { path: '', + component: WelcomeComponent + }, { + path: 'staff', + resolve : {startup : EgBaseResolver}, + loadChildren: './staff/staff.module#EgStaffModule' + } +]; +---------------------------------------------------------------------- + == Integrated I18N [source,html]