import * as observable from '@nativescript/core/data/observable' ; export function pageLoaded ( args ) { var page = args . object ; var textFieldSecured = page . getViewById ( 'textFieldSecured' ) ; textFieldSecured . secure = true ; var obj = new observable . Observable ( ) ; obj . set ( 'textProperty' , 'text' ) ; page . bindingContext = obj ; }