AngularJS ng-click to go to another page (with Ionic framework)

Based on comments, and due to the fact that @Thinkerer (the OP – original poster) created a plunker for this case, I decided to append another answer with more details. Here is a plunker created by @Thinkerer here is its updated and working version The first and important change: // instead of this $urlRouterProvider.otherwise(‘/tab/post’); // … Read more

Uncaught (in promise): cordova_not_available in Ionic 2

You are accessing native plugins while testing in the browser. In order to make plugins work, you should use a real device to test. In order to make your code testable in browser (or actually don’t break when testing in browser) you should have an if-statement checking if Cordova is available : if (this.platform.is(‘cordova’)) { … Read more

zipalign: command not found

Solved! I copied zipalign file from my Library/Android/sdk/build-tools/21.1.2 into my Ionic project folder I add ./ in front of the zipalign command like this – ./zipalign -v 4 /Users/zulhilmizainudin/Desktop/kl-parking/platforms/android/build/outputs/apk/android-release-unsigned.apk android-release.apk Done. Now I get android-release.apk inside my Ionic project folder. Thanks to Michael for the solution!

How can I create a horizontal scrolling Chart.js line chart with a locked y axis?

Scrollable Chart You’re pretty much on the right track. If you add another wrapper and the y axis you are done. Preview CSS .chartWrapper { position: relative; } .chartWrapper > canvas { position: absolute; left: 0; top: 0; pointer-events:none; } .chartAreaWrapper { width: 600px; overflow-x: scroll; } HTML <div class=”chartWrapper”> <div class=”chartAreaWrapper”> <canvas id=”myChart” height=”300″ … Read more

Debug Ionic app on IOS?

There are three primary options. Debug using Safari. This is good for debugging a hybrid app, but cannot tell you output related to native plugins. http://webdesign.tutsplus.com/articles/quick-tip-using-web-inspector-to-debug-mobile-safari–webdesign-8787 Open the project and build to device in Xcode. This shows the output of the entire device http://cordova.apache.org/docs/en/3.5.0/guide_platforms_ios_index.md.html#iOS%20Platform%20Guide Debug with Ionic CLI. Using ionic run ios -l -c -s … Read more

uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library

The problem for me was in cordova-plugin-browsertab. You need to change line 1 of my_project/plugins/cordova-plugin-browsertab/src/android/BrowserTab.gradle to def minSdkVersion = 19 Make sure you have the minimum SDK added to your config.xml <preference name=”android-minSdkVersion” value=”19″ /> Then remove and add cordova-android by: cordova platform remove android cordova platform add android

Ionic iOS build fails, error archive not found

Currently cordova-ios is not compatible with Xcode 10 You can try to disable the new build system that Xcode 10 uses and use the old one by adding this to your build.json file “buildFlag”: [ “-UseModernBuildSystem=0″ ] or adding –buildFlag=”-UseModernBuildSystem=0″ to the build command The full command should be cordova build ios –buildFlag=”-UseModernBuildSystem=0″. Or for … Read more