-
Notifications
You must be signed in to change notification settings - Fork 237
Closed
Labels
Description
Reproduction:
{
"rules": {
"templates-no-negated-async": true
}
}@Component({
selector: 'app-test',
template: `
<div *ngFor="let a of collection; trackBy: trackByFn"></div>
{{ (foo | async) == false }} // not reporting failure here
{{ !(bar | async) }} // not reporting failure here
`,
})
export class TestComponent {}
@Component({
selector: 'app-test',
template: `
<div *ngIf="!(a | async)"></div> // idk if it's intentional, but it's not reporting failure
{{ (foo | async) == false }} // not reporting failure here
{{ !(bar | async) }} // not reporting failure here
{{ !(isHandset | async) ? 'dialog' : 'navigation' }} // not reporting failure here
`,
})
export class TestComponent {}Reactions are currently unavailable