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

Class DirectiveWithPropDecorators

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

Source from the content-addressed store, hash-verified

3057}
3058
3059@Directive({
3060 selector: 'with-prop-decorators',
3061 standalone: false,
3062})
3063class DirectiveWithPropDecorators {
3064 target: any;
3065
3066 @Input('elProp') dirProp: string | undefined;
3067 @Output('elEvent') event = new EventEmitter();
3068
3069 @HostBinding('attr.my-attr') myAttr: string | undefined;
3070 @HostListener('click', ['$event.target'])
3071 onClick(target: any) {
3072 this.target = target;
3073 }
3074
3075 fireEvent(msg: any) {
3076 this.event.emit(msg);
3077 }
3078}
3079
3080@Component({
3081 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