• Skip to primary navigation
  • Skip to content
  • Skip to footer
Arshad Mehmood Arshad Mehmood Software Engineer • Tech Enthusiast
  • About
  • Today I Learned
  • Portfolio
  • Resources
  • Newsletter
  • Contact
    1. Home
    2. /
    3. Today i learned
    4. /
    5. Angular2
    6. /
    7. Disable closing the dialog on clicking outside the dialog window in Angular
    Arshad Mehmood

    Arshad Mehmood

    Software Engineer, DevOps Enthusiast, and Android Developer. M.Sc. Business Informatics from University of Mannheim. Building scalable solutions and sharing knowledge.

    • Mannheim, Germany
    • My Android Apps
    • LinkedIn
    • GitHub
    • Twitter
    • Instagram

    Disable closing the dialog on clicking outside the dialog window in Angular

    less than 1 minute read

    Disable closing the dialog on clicking outside the dialog window in Angular

    When you are opening your dialog, open it with this paramter:

    this.dialog.open(AppDialogComponent, {
          disableClose: true
        });
    

    It will disable closing the dialog, on clicks outside the dialog.

    Share on

    X Facebook LinkedIn Bluesky

    Leave a comment

    • Follow:
    • Twitter
    • GitHub
    • Instagram
    • Feed
    © 2025 Arshad Mehmood. Powered by Jekyll & Minimal Mistakes.