angular-docs-cn/public/docs/_examples/security/ts/app/app.component.ts

21 lines
478 B
TypeScript

// #docregion
import { Component } from '@angular/core';
import { BypassSecurityComponent } from './bypass-security.component';
import { InnerHtmlBindingComponent } from './inner-html-binding.component';
@Component({
selector: 'app-root',
template: `
<h1>Security</h1>
<inner-html-binding></inner-html-binding>
<bypass-security></bypass-security>
`,
directives: [
BypassSecurityComponent,
InnerHtmlBindingComponent,
],
})
export class AppComponent {
}