Skip to content

contextual-decorator: fails for some cases #776

@rafaelss95

Description

@rafaelss95

Case 1: (It doesn't report failures for pipes) Fixed in #754.

@Pipe({
  name: 'app-test'
})
export class TestPipe {
  @Input() someVar: string; // should report a failure, currently it does not.
}

Case 2: (it doesn't report failures if ViewChild decorator is applied to a setter accessor)

@Injectable({ // doesn't work for @Pipe also
  providedIn: 'root'
})
export class TestService {
  @ViewChild(Pane)  // should report a failure, currently it does not.
  set pane(v: Pane) {
    console.log('v', v);
  }
}

Also, the @Attribute decorator is not handled at the moment. Is it intentional? @mgechev @wKoza

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions