import { nativeScriptBootstrap } from "nativescript-angular/application" ; import * as appSettings from "application-settings" ; import { TodoApp } from "./app.component" ; global . localStorage = { getItem ( key ) { return appSettings . getString ( key ) ; } , setItem ( key , value ) { return appSettings . setString ( key , value ) ; } } ; nativeScriptBootstrap ( TodoApp ) ;