MI ARCHIVO GLOBAL USER SNIPPETS PARA VISUAL STUDIO CODE
"Ionic Modal Controller": {
"scope": "javascript,typescript",
"prefix": "ionModalController",
"body": [
"const modal = await this.modalController.create({",
" component: $1,",
" cssClass: 'modal-fullscreen', backdropDismiss: false,",
"});",
"await modal.present();",
"const { data } = await modal.onWillDismiss();",
],
"description": "Ionic Modal Controller"
},
"Ionic Loading Controller": {
"scope": "javascript,typescript",
"prefix": "ionLoadingController",
"body": [
"const loadingCtr = await this.loadingController.create({",
" message: 'Loading...',",
" backdropDismiss: false",
"});",
"loadingCtr.present();",
],
"description": "Ionic Loading Controller"
},
"JavaScript Return Promise": {
"scope": "javascript,typescript",
"prefix": "jsReturnNewPromise",
"body": [
"return new Promise((resolve, reject) => {$1",
"});",
],
"description": "Return New Promise"
}
MY GLOBAL USER SNIPPETS (VS CODE)
Full Stack Web Developer && SDK SAPB1 Developer.
Melómano, Gamer (Xbox), Comprador compulsivo de Amazon y Posiblemente con TDAH.