Ionic - Unexpected token. A constructor, method, accessor, or property was expected -


i want news sharing function in ionic2 apps, , code ionic document still showing error.

this qq sharing, sharing news text, image, audio, , want know ionic got sharesdk mob can derictly share platform, bcz have develop fb, weibo, wechat too. many coding

news.ts

import { component } '@angular/core'; import { navcontroller, navparams } 'ionic-angular'; import { newsdataprovider } '../../providers/news-data/news-data';  import { qqsdk, qqshareoptions } '@ionic-native/qqsdk';   @component({   selector: 'page-news-detail',   templateurl: 'news-detail.html', }) export class newsdetailpage {     new: any;     constructor(public navctrl: navcontroller,          public navparams: navparams,         public newsdata:newsdataprovider,         private qq: qqsdk) {         this.new = navparams.get('new');   }    share(){     this.qq.sharetext(sharetextoptions)        .then(() => {           console.log('sharetext success');        })        .catch(error => {           console.log(error);        });      this.qq.shareimage(options)        .then(() => {           console.log('shareimage success');        })        .catch(error => {           console.log(error);        });     }      this.qq.sharenews(options)        .then(() => {           console.log('sharenews success');        })        .catch(error => {           console.log(error);        });     }      this.qq.shareaudio(options)        .then(() => {           console.log('shareaudio success');        })        .catch(error => {           console.log(error);        });       }  } 

here error in terminal

enter image description here


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -