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

index 3c97767..8c48a1d 100644 (file)
@@ -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]
+------------------------------------------------------------------------
+<Directory "/openils/var/web/ang2">
+    FallbackResource /ang2/index.html
+</Directory>
+------------------------------------------------------------------------
+
+
 === Development w/ Apache
 
  * https://github.com/angular/angular-cli/wiki/stories-disk-serve