Hi I would like to ask how will I be able to open a browser and going to a particular website by clicking an icon on a mobile application with ionic framework. For example I clicked the youtube icon on the Ionic framework app, it will open a browser and go to youtube.
Asked
Active
Viewed 165 times
1 Answers
1
User Inappbrowser plugin in your project to open external links.
Plugin Documentation .
General Steps:
- add plugin using command
ionic plugin add cordova-plugin-inappbrowser
- Use this line where you want to open link
var ref = cordova.InAppBrowser.open('http://youtube.com', '_blank', 'location=yes');

Mudasser Ajaz
- 6,197
- 1
- 26
- 29