会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
爱吃橘子的小红鞋
博客园
首页
新随笔
联系
订阅
管理
2020年1月10日
Angular -- 组件传值
摘要: 一、父传子 在父组件ts中定义要传递的信息 在父组件html中的子组件标签中定义自定义属性来绑定父组件定义的信息 在子组件中的ts中,通过@Input来接收自定义属性的名称 import {Input} from '@angular/core'; @Input() info:string; 在子组件
阅读全文
posted @ 2020-01-10 16:22 hannahY
阅读(2151)
评论(0)
推荐(1)
编辑
公告