MCPcopy Create free account
hub / github.com/angular/angular / DirectiveWithPropDecorators

Class DirectiveWithPropDecorators

packages/core/test/linker/integration_spec.ts:3065–3084  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3063}
3064
3065@Directive({
3066 selector: 'with-prop-decorators',
3067 standalone: false,
3068})
3069class DirectiveWithPropDecorators {
3070 target: any;
3071
3072 @Input('elProp') dirProp: string | undefined;
3073 @Output('elEvent') event = new EventEmitter();
3074
3075 @HostBinding('attr.my-attr') myAttr: string | undefined;
3076 @HostListener('click', ['$event.target'])
3077 onClick(target: any) {
3078 this.target = target;
3079 }
3080
3081 fireEvent(msg: any) {
3082 this.event.emit(msg);
3083 }
3084}
3085
3086@Component({
3087 selector: 'some-cmp',

Callers

nothing calls this directly

Calls 5

DirectiveClass · 0.90
InputInterface · 0.90
OutputInterface · 0.90
HostBindingInterface · 0.90
HostListenerInterface · 0.90

Tested by

no test coverage detected