Created
June 22, 2018 06:32
-
-
Save JiaLiPassion/dd50d111fe0afc46e06948e2d1b9e521 to your computer and use it in GitHub Desktop.
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
class AngularCustomElementBridge { | |
prepare(injector, component) { | |
this.componentFactory = injector.get(ComponentFactoryResolver).resolveComponentFactory(component); | |
// we use templateName to handle this case @Input('aliasName'); | |
this.observedAttributes = componentFactory.inputs.map(input => input.templateName); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment