MCPcopy Index your code
hub / github.com/angular/angular / DirectiveWithPropDecorators

Class DirectiveWithPropDecorators

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

Source from the content-addressed store, hash-verified

3028}
3029
3030@Directive({
3031 selector: 'with-prop-decorators',
3032 standalone: false,
3033})
3034class DirectiveWithPropDecorators {
3035 target: any;
3036
3037 @Input('elProp') dirProp: string | undefined;
3038 @Output('elEvent') event = new EventEmitter();
3039
3040 @HostBinding('attr.my-attr') myAttr: string | undefined;
3041 @HostListener('click', ['$event.target'])
3042 onClick(target: any) {
3043 this.target = target;
3044 }
3045
3046 fireEvent(msg: any) {
3047 this.event.emit(msg);
3048 }
3049}
3050
3051@Component({
3052 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…