Search code examples
angularcodelyzer

why does codelyzer 4 remove templates-use-public?


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?


Solution

  • 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