Created
November 9, 2021 09:51
-
-
Save zzpzaf/fdbda0f65208185b39748a9aa4d23f4e to your computer and use it in GitHub Desktop.
Angular Directive selectors - Attribute Selector example with value
This file contains 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
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