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:
11
apps/ui/src/scroll-view/layout-outside-scroll-page.ts
Normal file
11
apps/ui/src/scroll-view/layout-outside-scroll-page.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { EventData as ObservableEventData } from '@nativescript/core/data/observable';
|
||||
import { Page } from '@nativescript/core/ui/page';
|
||||
import { LayoutOutsideScrollViewModel } from './layout-outside-scroll-view-model';
|
||||
|
||||
var viewModel = new LayoutOutsideScrollViewModel();
|
||||
|
||||
export function pageLoaded(args: ObservableEventData) {
|
||||
var page = <Page>args.object;
|
||||
|
||||
page.bindingContext = viewModel;
|
||||
}
|
||||
Reference in New Issue
Block a user