Skip to content

Instantly share code, notes, and snippets.

@zzpzaf
Created November 9, 2021 09:49
Show Gist options
  • Save zzpzaf/37a6e4cc9c9e1564067ab53d7e45e25a to your computer and use it in GitHub Desktop.
Save zzpzaf/37a6e4cc9c9e1564067ab53d7e45e25a to your computer and use it in GitHub Desktop.
Angular Directive selectors - Attribute Selector example
import { Directive } from '@angular/core';
@Directive({
selector: '[myattr]'
})
export class MyDirective {
constructor() { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment