I am using a temporary free hosted website where i am updating/adding new articles. This is the feed that is generated by the wordpress api:
https://feederhorgasz.000webhostapp.com/wp-json/acf/v3/posts?_embed?
I can clearly see that if i rewrite a title it is updating in this feed, but my application is still showing old data even if i rebuild my app.
Anyone know why is this happening?
url: string = 'https://feederhorgasz.000webhostapp.com/wp-json/acf/v3/posts?_embed?';
items:any;
hirfolyambetolt(){
return new Promise((resolve) => {
this.http.get( this.url )
.map(res => res.json())
.subscribe(data =>
{
this.items = data;
});
resolve(true);
});
}
This code is running in ionviewwillenter
html:
<ion-card ion-item *ngFor="let item of items" (click)="itemKlikk(item)">
<ion-card-content>
<ion-item>
<h2>{{item.acf.cim}}</h2>
<p>{{item.acf.datum}}</p>
</ion-item>
<img src="{{item.acf.image}}"/>
<ion-card-content>
<div class="text" [innerHTML]="item.acf.short"></div>
</ion-card-content>