Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Json with Share button

$
0
0

@fdggfhgffsdfsf wrote:

Hello,

I have a Json link in which there is a link of the article from the official website.

What i’m trying to do :
{ In my app, there are a lot of articles, at the end there is a share button, when you click on the share button, it redirect you to the article from the official site. }

I’m new on ionic and i have no idea how to do this.

article.ts

  SocialShare(b) {
      this.socialSharing.share("Look at this !", null, null, b).then(() => {
        console.log(b,"shareSheetShare: Success");
      }).catch(() => {
        console.error(b,"shareSheetShare: failed");
      });
  }

article.html
<button ion-button color=“Orange” name=“md-share” (click)=“SocialShare({{data.link}})”>Share

Thanks !

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>