Angular Modernizer
    Preparing search index...

    Dialog detection configuration for PresentationalComponentViolationRule.

    Dialog components are container components: they manage service calls and local state by design. They should not be flagged as presentational violations.

    Configure in .angular-modernizer.json:

    {
    "rules": {
    "angular:presentational-component-violation": {
    "dialogDetection": {
    "injectedClassNames": ["MatDialogRef", "MAT_DIALOG_DATA"],
    "baseClassNames": ["AppDialogBaseComponent", "BaseDialogComponent"]
    }
    }
    }
    }
    interface DialogDetectionConfig {
        baseClassNames: string[];
        injectedClassNames: string[];
    }
    Index

    Properties

    baseClassNames: string[]

    Base class names that mark a component as a dialog. Any component extending one of these classes is skipped. Default: []

    injectedClassNames: string[]

    Constructor-injected or inject()-based class names that mark a component as a dialog. Any component that has one of these as a dependency is skipped. Default: ['MatDialogRef']