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

Class DirectiveWithPropDecorators

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

Source from the content-addressed store, hash-verified

3213}
3214
3215@Directive({
3216 selector: 'with-prop-decorators',
3217})
3218class DirectiveWithPropDecorators {
3219 target: any;
3220
3221 @Input('elProp') dirProp: string | undefined;
3222 @Output('elEvent') event = new EventEmitter();
3223
3224 @HostBinding('attr.my-attr') myAttr: string | undefined;
3225 @HostListener('click', ['$event.target'])
3226 onClick(target: any) {
3227 this.target = target;
3228 }
3229
3230 fireEvent(msg: any) {
3231 this.event.emit(msg);
3232 }
3233}
3234
3235@Component({
3236 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