Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JiaLiPassion/ab64ab8bd9d1185ffc8ff5212e68f72d to your computer and use it in GitHub Desktop.
Save JiaLiPassion/ab64ab8bd9d1185ffc8ff5212e68f72d to your computer and use it in GitHub Desktop.
this.componentFactory = injector.get(ComponentFactoryResolver).resolveComponentFactory(component);
this.observedAttributes = componentFactory.inputs.map(input => input.templateName); // we use templateName to handle this case @Input('aliasName');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment