Is it a bad practice to initialize other properties in @Input setter in Angular?

前端 未结 0 611
广开言路
广开言路 2020-11-29 00:50

Imagine, I have the next component\'s input:

export interface Settings {
  step: number;
  min: number;
  max: number;
}

@Input settings: Settings;


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题