ParentComponent와 ChildComponent가 있고 PgComponent의 ngModel을 ChildComponent에 전달해야합니다.angular2는 자식 구성 요소에 ngModel을 전달합니다.
// the below is in ParentComponent template
<child-component [(ngModel)]="valueInParentComponent"></child-component>
어떻게 ChildComponent에서 ngModel의 값을 취득하고 조작 할 수 있습니까?
하고,보다 것은 부모로부터 주입 <아이 컴포넌트 [yourinput]/= "someVariable"> –