Posts

Showing posts with the label ionic2

Navigate to tab passing parameter

Navigate to tab passing parameter Is posibble to pass parameter with this method: this.app.getRootNav().getActiveChildNav().select(3); i tried: this.app.getRootNav().getActiveChildNav().select(3, {apto: 1}); but it didnt work. 1 Answer 1 No , according to the docs the select function only takes one parameter ( tabOrIndex ) specifying the tab or index to select. A quick look into the corresponding code verifies this. select tabOrIndex To work arround this and pass data from one tab to another you can refer to this answer which offers three possible approaches to this problem. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Ionic serve VS ionic serve -c

Image
Ionic serve VS ionic serve -c I'm new in Ionic and using Ionic 3.9.2 I got several terminal commands to serve my ionic-app but, I'm not getting any difference between these two commands. ionic serve and ionic serve -c 2 Answers 2 This is basically short form of ionic serve --consolelogs for printing the log of you app in ionic CLI.(see the image) ionic serve --consolelogs There is second command to debug the app which is ionic serve --verbose ionic serve --verbose Hope this helps you to find out the difference. ionic serve -c ionic serve -c or ionic serve --consolelogs will Print app console logs to your Ionic CLI. Hope this helps By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.