- App now shows how Angular handles untrusted URLs and resources - E2e test covered new functionality - Copyedits to prose - Updated provider expressions to use latest syntax The original security feature tracker: https://github.com/angular/angular/issues/8511
21 lines
475 B
TypeScript
21 lines
475 B
TypeScript
// #docregion
|
|
import { Component } from '@angular/core';
|
|
|
|
import { BypassSecurityComponent } from './bypass-security.component';
|
|
import { InnerHtmlBindingComponent } from './inner-html-binding.component';
|
|
|
|
@Component({
|
|
selector: 'my-app',
|
|
template: `
|
|
<h1>Security</h1>
|
|
<inner-html-binding></inner-html-binding>
|
|
<bypass-security></bypass-security>
|
|
`,
|
|
directives: [
|
|
BypassSecurityComponent,
|
|
InnerHtmlBindingComponent,
|
|
]
|
|
})
|
|
export class AppComponent {
|
|
}
|