Angular组件间通讯

一.组件的输入属性 1.输入属性的装饰器 @Input() 2.实例代码 生成子组件order ng g component order 在子组件中输入amount属性 //order.component.ts export class OrderComponent{ @Input() amount:string } //order.component.html <p>存在{{amoun
相关文章
相关标签/搜索