How would I make this @Input property read only in an angular component?
@Input() name: string;

0 Answer
You simply need to use the readonly qualifier as below, between the @Input decorator and the name identifier.
@Input() readonly name: string;
这家伙很懒,什么都没留下...