목록ionic (10)
오늘만살자
npm install @vue/cli vue create ionic-vue cd ionic-vue npm run serve npm install @ionic/core @ionic/vue vue-router main.js import Vue from 'vue'; import App from './App.vue'; import IonicVue from '@ionic/vue'; import '@ionic/core/css/core.css'; import '@ionic/core/css/ionic.bundle.css'; Vue.config.productionTip = false; Vue.use(IonicVue); new Vue({ render: h => h(App) }).$mount('#app'); App.vue ..
sudo chmod 755 /Applications/Android\ Studio.app/Contents/gradle/gradle-4.1/bin/gradle vi .bash_profileexport ANDROID_HOME=/Users/rayis/Library/Android/sdkexport JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home
error ios-deploy@2.0.0 preinstall: `./src/scripts/check_reqs.js && xcodebuild npm install -g ios-deploy --unsafe-perm=true
src/app/app.componet.ts import { App } from 'ionic-angular';constructor(public app: App) { platform.registerBackButtonAction(()=>{ let navv = app.getActiveNav(); if(navv.canGoBack()){ navv.pop(); }else{ let confrim = alertCtrl.create({ title : "앱을 종료하시겠습니까?", message : "", buttons : [ { text : "OK", handler : ()=>{ platform.exitApp(); } }, { text: "Cancel", handler:()=>{ } } ] }); confrim.presen..
ionic cordova build android ionic cordova run android --device ionic cordova emulate android 빌드에러가 나면 sdk 위치 확인 C:\Users\test\AppData\Local\Android\Sdk
src/theme/variables.scss 로 이동 $item-ios-detail-push-show: true; $item-md-detail-push-show: true; $item-wp-detail-push-show: true; 위 내용 추가
- src/pages/other/other.html other Show Basic Alert Show Prompt Alert Show Confirm Alert Show Radio Alert Show Checkbox Alert - src/pages/other/other.ts import { Component } from '@angular/core'; import {AlertController, NavController, NavParams} from 'ionic-angular'; /** * Generated class for the OtherPage page. * * See http://ionicframework.com/docs/components/#navigation for more info * on Io..
출저 https://ionicframework.com/docs/components/#alert 출처에 가시면 더 자세히 나와요. * page 추가를 보시고 오세요. * 버튼 만들기(src/pages/other/ohter.html) other Show Basic Alert Show Prompt Alert Show Confirm Alert Show Radio Alert Show Checkbox Alert 버튼 다섯개를 만듭니다. - Basic Alerts(src/pages/other/other.ts 에 추가합니다.) export class OtherPage { constructor(public navCtrl: NavController, public navParams: NavParams, public aler..
ionic start App sidemenu cd App ionic serve -i -c 이 후에 페이지 추가 작업을 한다. ionic 폴더로 이동한다. ionic g page other - src/app/app.modules.ts import { BrowserModule } from '@angular/platform-browser'; import { ErrorHandler, NgModule } from '@angular/core'; import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular'; import { MyApp } from './app.component'; import { OtherPage } from '../pages/ot..