Answer the question
In order to leave comments, you need to log in
How to fix TSlint firing on @Input() with set/get in Angular?
The rule in tslint.json is:
...
"no-unsafe-any": true
...
...
@Input() public get value(): string {
return this._value;
}
public set value(newValue: string) {
this._value = newValue;
this.valueChange.emit(this.value);
}
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question