angular - 组件之间的角度数据绑定
问题描述
我正在尝试在应用程序组件和项目中的另一个组件之间共享数据。我使用装饰器使用父子数据绑定@input
但是当我这样做时
<router-outlet #outlet="outlet"></router-outlet>
<app-customer-registration [client]="client"></app-customer-registration>
在应用组件模板中,子模板(app-customer-registration)在屏幕上呈现两次。
我的路由配置:
解决方案
推荐阅读
- java - 使用 selenium 网格时更改浏览器缩放级别
- javascript - 获取/设置不是函数?
- reactjs - 让 onMomentumScrollEnd 只听触摸交互 - 而不是 scrollTo 方法
- javascript - 从 ArcGIS WebMap 查找缩放级别
- html - 最后一个孩子选择CSS中的所有孩子?
- javascript - 如何一次格式化 Eclipse 项目中的所有 JavaScript 文件?
- android - 为什么在同一个应用程序中无法再访问为我的应用程序填充的剪贴板?
- iframe - 将 iframe 从 Google 表格嵌入到 Google 协作平台
- wcf - 如何根据Restfull wcf服务中的暂存环境更改uritemplate
- kotlin - 使用“is”运算符查找类实例的通用方法