Answers for "custom ngmodel"

0

custom ngmodel

<app-my-control [(myProp)]="value"></app-my-control>


@Input()
myProp: string;

// Output prop name must be Input prop name + 'Change'
// Use in your component to write an updated value back out to the parent
@Output()
myPropChange = new EventEmitter<string>();
Posted by: Guest on September-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language