From 37a683d9a814f3f69059f819fd45fba3b28b05f7 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 17 Nov 2017 14:54:20 -0500 Subject: [PATCH] ang2 notes Signed-off-by: Bill Erickson --- NOTES.adoc | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/NOTES.adoc b/NOTES.adoc index 3c97767ee..8c48a1d1c 100644 --- a/NOTES.adoc +++ b/NOTES.adoc @@ -91,6 +91,33 @@ npm install -D @types/jquery import * as $ from 'jquery'; ------------------------------------------------------------------------ +* Imports editing tsconfig.json +[source,sh] +------------------------------------------------------------------------ +"compilerOptions": { + ... + "baseUrl": "src", + "paths": { + "@eg/*": ["app/*"], + "@env/*": ["environments/*"] + }, + ... +} +------------------------------------------------------------------------ + +== Configure Apache for lazy-loading / nested modules + +* Assumes ng-build is compiling to /openils/var/web/ang2 (or symlinked) +* Another nod toward going all angular .html / no TT2 or EGWeb required. + +[source,sh] +------------------------------------------------------------------------ + + FallbackResource /ang2/index.html + +------------------------------------------------------------------------ + + === Development w/ Apache * https://github.com/angular/angular-cli/wiki/stories-disk-serve -- 2.11.0