add strictUnusedTemplate
to template type checker
#54626
Labels
Milestone
strictUnusedTemplate
to template type checker
#54626
Which @angular/* package(s) are relevant/related to the feature request?
compiler
Description
referencing
@angular/compiler 17.2.0
I like your addition of lint like features to your template compiler, listed on https://angular.dev/tools/cli/template-typecheck#troubleshooting-template-errors
Another warning it could throw. Unused templates:
If nobody accesses
foo
in the template or no@ViewChild('foo')
annotation exists, this could be an error.This could catch errors that happen because someone removed
*ngTemplateOutlet
but forgot to either remove or use the template otherwise.The text was updated successfully, but these errors were encountered: