0
공유 모델 변수의 형식이 하위 구성 요소와 호환되지 않습니다. 응용 프로그램 모델을 엉망으로 만들지 않고 변환을 어떻게 처리해야합니까?호환되지 않는 형식의 공유 모델 변수
import {Calendar} from 'primeng/primeng';
@Component({
selector: 'foo',
directives: [Calendar],
template: `
...
<p-calendar [(ngModel)]="model"></p-calendar>
...
`})
class FooComponent {
// input format: "1970-01-01T00:00:00Z"
// model is shared within the app
// should stay in this format
// Calendar doesn't support this format
@Input() model;
}