I'm trying to check if a string has >= and then, if so, replace that with the ascii character for greater than and equal to. I'm working in Angular in the TS file and currently have:
@Input()
public set textLabel(value: string) {
let labelSymbols = value
// figure out how to check if string has >=
// if string has >=, replace with ASCII character
this._textLabel = labelSymbols
this._changeDetectorRef.detectChanges();
}
public get textLabel(): string {
return this._textLabel
}
private _textLabel: string;
What do I need to do to change the greater than and equal to when it occurs in the string?