mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
10 lines
214 B
TypeScript
10 lines
214 B
TypeScript
import { Observable, Frame } from '@nativescript/core';
|
|
|
|
export class MainViewModel extends Observable {
|
|
viewDemo(args) {
|
|
Frame.topmost().navigate({
|
|
moduleName: `plugin-demos/${args.object.text}`,
|
|
});
|
|
}
|
|
}
|