You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The classes under ./classes all implement the setProp() and getProp() methods while also leaving the property itself public. This should be changed to follow proper practices which looks like the following:
private _value : string;
public get value() : string {
return this._value;
}
public set value(v : string) {
this._value = v;
}
This allows to call the prop directly as if it was a public property, but in the background it actually calls the proper set or get methods.
E.g. calling instance.prop="test" will be actually call the set method.
The text was updated successfully, but these errors were encountered:
The classes under ./classes all implement the setProp() and getProp() methods while also leaving the property itself public. This should be changed to follow proper practices which looks like the following:
This allows to call the prop directly as if it was a public property, but in the background it actually calls the proper set or get methods.
E.g. calling instance.prop="test" will be actually call the set method.
The text was updated successfully, but these errors were encountered: