mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit edits the property binding doc copy and adds some docregions to clarify explanations. PR Close #38799
36 lines
893 B
TypeScript
36 lines
893 B
TypeScript
import { Component } from '@angular/core';
|
|
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
templateUrl: './app.component.html',
|
|
styleUrls: ['./app.component.css']
|
|
})
|
|
export class AppComponent {
|
|
// #docregion item-image
|
|
itemImageUrl = '../assets/phone.png';
|
|
// #enddocregion item-image
|
|
// #docregion boolean
|
|
isUnchanged = true;
|
|
// #enddocregion boolean
|
|
// #docregion directive-property
|
|
classes = 'special';
|
|
// #enddocregion directive-property
|
|
// #docregion parent-data-type
|
|
parentItem = 'lamp';
|
|
// #enddocregion parent-data-type
|
|
|
|
// #docregion pass-object
|
|
currentItems = [{
|
|
id: 21,
|
|
name: 'phone'
|
|
}];
|
|
// #enddocregion pass-object
|
|
|
|
interpolationTitle = 'Interpolation';
|
|
propertyTitle = 'Property binding';
|
|
|
|
// #docregion malicious-content
|
|
evilTitle = 'Template <script>alert("evil never sleeps")</script> Syntax';
|
|
// #enddocregion malicious-content
|
|
}
|