Custom suffix in Angular class names

Discussão em 'Angular' iniciado por vitaly-t, Fevereiro 21, 2025.

  1. vitaly-t

    vitaly-t Guest

    Is it possible to configure an Angular 7 (with CLI 7.x) project to use class name suffixes other than the default ones?

    More specifically, for classes that represent dialog boxes, I want to use Dialog in the end, and not DialogComponent, which is unnecessarily long. And for classes that represent pages I want to use Page, and not PageComponent.

    examples:

    • use LoginDialog instead of LoginDialogComponent
    • use MainPage instead of MainPageComponent

    Simple renaming isn't possible, due to the tslint rules preset within Angular.

    Continue reading...

Compartilhe esta Página