Updated Readme

This commit is contained in:
Daniel Gaeta 2016-09-09 16:08:01 -07:00
parent 7d6c6bf45d
commit 1d7c6e7da1
1 changed files with 3 additions and 3 deletions

View File

@ -21,9 +21,9 @@ This package produces the following:
* src/webparts/todo/core - an abstract base class that we created for angular2 applications.
* src/webparts/todo/TodoWebPart.ts - a class to create unique instances of the root class component and return other metadata for the NgModule decorator function.
Our experiment findings:
### Our experiment findings
1. Bootstrapping multiple angular2 applications on the same page:
Bootstrapping multiple angular2 applications on the same page:
* Each time bootstrap is invoked on a component, it will create ComponentMetadata associated with the class's 'annoations' array for the root component.
* Angular2 uses this annotation array to match element's on the DOM to angular root component references/properties.
* When bootstrap is invoked an additional time with the same root component class, it will again create a ComponentMetadata object and append it to the 'annotions' array associated with the root class.
@ -32,7 +32,7 @@ Our experiment findings:
* This forced a new class prototype object to be created with a new annotations array.
* Moreover, it took a bit of reverse engineering and digging into hidden properties to find references to the rootComponent so that we could make updates to class properties and to the view.
Our experiment questions:
### Our experiment questions:
* We have 3 questions you can find in 'src/webparts/todo/core/BaseAngular2WebpPart.ts' that are marked by '@question'.
### Build options