import { ViewModel } from './home-view-model' ; import { EventData } from '@nativescript/core/data/observable' ; import * as imageModel from '@nativescript-community/ui-image' ; export function pageLoaded ( args ) { this . page = args . object ; this . page . bindingContext = new ViewModel ( ) ; } export function onClearCache ( args ) { const imagePipeLine = imageModel . getImagePipeline ( ) ; imagePipeLine . clearCaches ( ) ; }