DEV Community

Rajasekar Thangavel
Rajasekar Thangavel

Posted on

Code Snippets

Remove default styles in angular

import { Component, ViewEncapsulation } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';

@Component({
  selector: 'app-expression-dialog',
  templateUrl: './expression-dialog.component.html',
  styleUrls: ['./expression-dialog.component.scss'],
  encapsulation: ViewEncapsulation.None,
})
export class ExpressionDialogComponent {
  constructor(public dialog: MatDialog) {}
}

Enter fullscreen mode Exit fullscreen mode


`

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more