From 7ed80e710e06894027bdc56dbb35a1a5cd9d4221 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 1 May 2018 08:31:06 -0500 Subject: [PATCH] ang2 Signed-off-by: Bill Erickson --- ang2-preso.adoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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] -- 2.11.0