我需要在我Angular2应用重命名部件。我改名的组件文件夹中的所有文件(从x.component。*至y.component。*)和文件夹本身(从X到Ÿ)。我也更新文件: y.component.ts:改名templateUrl/styleUrls app.routing.ts app.module.ts 之后,我想重新开始纳克服务器“NG S”,但现在它说"You have to be ins
我有ParentComponent和ChildComponent,并且需要将ParentComponent中的ngModel传递给ChildComponent。 // the below is in ParentComponent template
<child-component [(ngModel)]="valueInParentComponent"></child-component>