mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
14 lines
368 B
TypeScript
14 lines
368 B
TypeScript
import {Component, ViewEncapsulation} from '@angular/core';
|
|
|
|
// #docregion
|
|
@Component({
|
|
standalone: true,
|
|
selector: 'app-no-encapsulation',
|
|
template: `
|
|
<h2>None</h2>
|
|
<div class="none-message">No encapsulation</div>
|
|
`,
|
|
styles: ['h2, .none-message { color: red; }'],
|
|
encapsulation: ViewEncapsulation.None,
|
|
})
|
|
export class NoEncapsulationComponent {}
|