首页 > 解决方案 > 组件之间的角度数据绑定

问题描述

我正在尝试在应用程序组件和项目中的另一个组件之间共享数据。我使用装饰器使用父子数据绑定@input但是当我这样做时

<router-outlet #outlet="outlet"></router-outlet>
<app-customer-registration [client]="client"></app-customer-registration>

在应用组件模板中,子模板(app-customer-registration)在屏幕上呈现两次。

我的路由配置: 路由配置

标签: angular2-way-object-databinding

解决方案


推荐阅读