通过 @Input() 装饰器,告知这个属性允许外部提供数据。 @Component({ selector: 'user-detail', template: `<p>user id: {{userId}}</p>` }) export class ...
確定! 回上一頁