This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @author http://bradford.digital | |
| * @link https://stackoverflow.com/questions/42949647/resolve-type-of-component-from-string-in-angular2 | |
| * | |
| * Keep a registry of key:value pairs that is the string name of a component and the Component reference | |
| * The registry is stored in an exported const named COMPONENTREGISTRY | |
| * Add to the registry by using the registerComponent() function as an adorner. example: | |
| * @registerComponent | |
| * @Component({...}) | |
| * export class AnExampleComponent {...} |