mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(core): nativescript.config and webpack updates (#8801)
This commit is contained in:
32
apps/ui/src/test-example-model.ts
Normal file
32
apps/ui/src/test-example-model.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { Observable } from '@nativescript/core/data/observable';
|
||||
|
||||
export class TestExample extends Observable {
|
||||
private _name: string;
|
||||
private _path: string;
|
||||
|
||||
constructor(name: string, path: string) {
|
||||
super();
|
||||
this._name = name;
|
||||
this._path = path;
|
||||
}
|
||||
|
||||
get name(): string {
|
||||
return this._name;
|
||||
}
|
||||
|
||||
set name(value: string) {
|
||||
if (this._name !== value) {
|
||||
this._name = value;
|
||||
}
|
||||
}
|
||||
|
||||
get path(): string {
|
||||
return this._path;
|
||||
}
|
||||
|
||||
set path(value: string) {
|
||||
if (this._path !== value) {
|
||||
this._path = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user