当前位置:网站首页>Pass parent component to child component: props
Pass parent component to child component: props
2022-07-07 07:09:00 【To be a woman of light】
One 、 Communication between parent components is very common in development , For example, the parent component has some data , Sub components are required for presentation ;
- At this time we can adopt props To complete the communication between components ;
Two 、 What is? Props Well ?
- Props Yes, you can on the component Register some custom attribute;
- Parent component to these attribute assignment , Subcomponent pass attribute Get the corresponding value from the name of ;
3、 ... and 、Props There are two common uses :
- Mode one : Array of strings , The string in the array is attribute The name of ;
- Mode two : object type , The object type can be specified in attribute Name at the same time , Specify the type it passes , Is it necessary 、 Default value and so on ;
Mode one : Dynamic data should be colon
Mode two :
边栏推荐
- Tool class: object to map hump to underline underline hump
- Learning records on July 4, 2022
- [Luogu p1971] rabbit and egg game (bipartite game)
- Exception of DB2 getting table information: caused by: com ibm. db2.jcc. am. SqlException: [jcc][t4][1065][12306][4.25.13]
- DHCP路由器工作原理
- .net 5 FluentFTP连接FTP失败问题:This operation is only allowed using a successfully authenticated context
- 【JDBC以及内部类的讲解】
- . Net core accesses uncommon static file types (MIME types)
- Four goals for the construction of intelligent safety risk management and control platform for hazardous chemical enterprises in Chemical Industry Park
- 企業如何進行數據治理?分享數據治理4個方面的經驗總結
猜你喜欢
How to model and simulate the target robot [mathematical / control significance]
JDBC database connection pool usage problem
华为机试题素数伴侣
Precise space-time travel flow regulation system - ultra-high precision positioning system based on UWB
Implementation of AVL tree
The latest trends of data asset management and data security at home and abroad
2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书
After the promotion, sales volume and flow are both. Is it really easy to relax?
Bus message bus
Matlab tips (30) nonlinear fitting lsqcurefit
随机推荐
Config distributed configuration center
企業如何進行數據治理?分享數據治理4個方面的經驗總結
Abnova membrane protein lipoprotein technology and category display
Academic report series (VI) - autonomous driving on the journey to full autonomy
[explanation of JDBC and internal classes]
linux系统rpm方式安装的mysql启动失败
Jesd204b clock network
How can brand e-commerce grow against the trend? See the future here!
云备份项目
Common function detect_ image/predict
Master-slave replication principle of MySQL
MYSQL----导入导出&视图&索引&执行计划
Network foundation - header, encapsulation and unpacking
Data of all class a scenic spots in China in 2022 (13604)
请教一下,监听pgsql ,怎样可以监听多个schema和table
Initial experience of addresssanitizer Technology
Algorithm --- bit count (kotlin)
联合索引ABC的几种索引利用情况
. Net 5 fluentftp connection FTP failure problem: this operation is only allowed using a successfully authenticated context
How can flinksql calculate the difference between a field before and after update when docking with CDC?