How to do it...

The following are the instructions:

  1. Start a blank project (for example, LinkSocialShare), as follows, and go to that folder:
$ ionic start LinkSocialShare blank
$ cd LinkSocialShare
  1. Add the social sharing plugin and Ionic Native wrapper for the plugin with the following command line:
$ ionic plugin add cordova-plugin-x-socialsharing
$ npm install --save @ionic-native/social-sharing
  1. Open ./src/pages/home/home.html and replace its contents with the following code:
<ion-header>  <ion-navbar>    <ion-title>      Home    </ion-title>  </ion-navbar></ion-header><ion-content>  <ion-card>    <ion-item>      <h2 #messageSubject>Ionic Developer</h2>      <p>May 5, 2016</p>    </ion-item>    <img src="https://source.unsplash.com/category/technology/600x390">

Get Ionic Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.