Skip to content

Instantly share code, notes, and snippets.

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