i am having problem migrating from Http to HttpClient, this is the code that i use
constructor(public navCtrl: NavController, public http: HttpClient, private alertCtrl: AlertController) {
 this.http.get('http://example.com/date.php')
.subscribe(data => {
  this.posts = data;
  this.postsfilter = data.filter(item => item.date == todayDate);
 });
 }
i have included import 'rxjs/add/operator/filter'; but still getting error : Property 'filter' does not exist on type 'Object'. how to filter the return json file correctly?
