Error: Current working directory is not a Cordova-based project.
https://github.com/driftyco/ionic-cli/issues/935 just put www directory on root
https://github.com/driftyco/ionic-cli/issues/935 just put www directory on root
https://gxiangco.gitbooks.io/m3-app-dev/content/part4/%E6%9B%B4%E6%8F%9Bicons%E5%8F%8Asplashscreen.html 1、 change resource icon.png and splash.png 2、ionic resources 3、check resource android and ios images is changed ? 4、apk 4.1、 ionic platform remove android then ionic platform add android or 4.2、 ionic build android copy res android and ios images to platform/android or ios inside
https://ionicframework.com/docs/v2/native/photo-viewer/ follow step just do. Now focus https://github.com/sarriaroman/photoviewer/issues/11 ps: declare var cordova: any; ps2: cordova plugin add cordova-plugin-file www/assets/img is ionic2 now version, maybe future change, but now this is correct showImage(imageUrl) { if (this.platform.is(‘cordova’) && this.platform.is(‘android’)) { File.readAsDataURL(cordova.file.applicationDirectory + “www/assets/img/”, imageUrl) .then((dataURL:string) => { PhotoViewer.show(dataURL, “”, {share: false}) }) .catch( (err)=>{alert(“err: “+err) }); } else if (this.platform.is(‘cordova’) && this.platform.is(‘ios’)) { PhotoViewer.show(cordova.file.applicationDirectory + “www/assets/img/"+imageUrl); } } https://github.com/apache/cordova-plugin-file ========== https://www.npmjs.com/package/ionic-img-viewer
import { App } from ‘ionic-angular’;
http://blog.turn.tw/?p=1539 View Model 2: 不具有行為,只是等別人塞資料進去的模板(template)。 MVC: 具有監視Model的行為,並以此去改變呈現(presentation)。 Controller Model 2: 接收請求與參數,轉交給Model處理,再把結果(最新的資料)塞進View。 MVC: 接收請求與參數,轉交給Model處理。沒其他事了。 Model Model 2: 接收Controller傳來的參數,回傳結果。 MVC: 接收Controller傳來的參數,將結果通知View。