Skip to content

Instantly share code, notes, and snippets.

@alexzuza
Created January 29, 2019 07:45
Show Gist options
  • Save alexzuza/c8ebab9b7c35bd54857fbef12f036994 to your computer and use it in GitHub Desktop.
Save alexzuza/c8ebab9b7c35bd54857fbef12f036994 to your computer and use it in GitHub Desktop.
di false positive
@Component({
selector: 'my-app',
template: `
<div>
<div dirB>Hello Ivy</div>
</div>
`
})
export class AppComponent {}
@Directive({ selector: '[dirA]' })
export class DirA {
static __NG_ELEMENT_ID__ = 256;
}
@Directive({ selector: '[dirB]' })
export class DirB {
constructor(private dirA: DirA) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment