1

Codelyzer 4 has removed templates-use-public. "ng lint" will not report error when accessing a private member in html template. Does any alternative rule exist?

Yong
  • 1,107
  • 1
  • 12
  • 21

2 Answers2

0

I still know the cause exactly. However, in angular 5, "ng test" and "ng build -prod" will report errors when html template accesses private members.

Yong
  • 1,107
  • 1
  • 12
  • 21
0

From what I see in this issue: https://github.com/mgechev/codelyzer/issues/264
Codelyzer now delegates this to angular compiler itself.

There is also Angular Language Service, which should check that: https://angular.io/guide/language-service

kriskodzi
  • 681
  • 2
  • 10
  • 18