0
<ion-slides>
<ion-slide *ngFor="let item of strings">
<div>
{{ item }}
</div>
</ion-slide>
</ion-slides>
これはスライドにデータを取得するために私のtypescriptファイルで、私はイオンのスライドを使用しています私のページ内this plugin
でイオンアプリケーションでソーシャル共有を実装しています
export class Birthday {
strings : Array<string>;
constructor(public navCtrl: NavController, public navParams: NavParams) {
this.strings = new Array<string>();
this.strings.push('text1');
this.strings.push('text2');
this.strings.push('text3');
this.strings.push('text4');
}
}
現在、ソーシャル共有プラグインを使用している間、メッセージフィールドに現在のスライドデータを取得する方法
share(**slide data heree**, subject, file, link) {
this.platform.ready().then(() => {
if(window.plugins.socialsharing) {
window.plugins.socialsharing.share(message, subject, file, link);
}
});
}