Skip to content

Instantly share code, notes, and snippets.

@alxhub
Created February 9, 2022 21:41
Show Gist options
  • Save alxhub/716f5fd50af663922b3834dfd51c229d to your computer and use it in GitHub Desktop.
Save alxhub/716f5fd50af663922b3834dfd51c229d to your computer and use it in GitHub Desktop.
How the Angular Compiler Works - Component With Selector Constant
const MY_SELECTOR = 'my-cmp';
@Component({
selector: MY_SELECTOR,
template: '...',
})
export class MyCmp {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment