mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
17 lines
461 B
TypeScript
17 lines
461 B
TypeScript
import observable = require("data/observable");
|
|
|
|
export class WebViewModel extends observable.Observable {
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
private _text: string;
|
|
get text(): string {
|
|
return this._text;
|
|
}
|
|
set text(value: string) {
|
|
console.log(value);
|
|
this._text = value;
|
|
this.notify({ object: this, eventName: observable.Observable.propertyChangeEvent, propertyName: "text", value: value });
|
|
}
|
|
} |