How to change syntax "inputs" property to "@Input" property decorator

Viewed 1376

I have a piece of code which look like this

@Component({
    selector: 'control-messages',
    inputs: ['controlName: control'],
    template: `<div *ngIf="errorMessage !== null">{{errorMessage}}</div>`
})

How do I change it to @Input() property decorator.

2 Answers
Related