MOBILE-3277 siteplugins: Let site plugins use the fetchContent function

main
Dani Palou 2020-01-09 12:55:22 +01:00
parent d3455aa5c0
commit f2f17a4d1b
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ export class CoreSitePluginsPluginContentComponent implements OnInit, DoCheck {
this.jsData = Object.assign(this.data, this.sitePluginsProvider.createDataForJS(this.initResult, result)); this.jsData = Object.assign(this.data, this.sitePluginsProvider.createDataForJS(this.initResult, result));
// Pass some methods as jsData so they can be called from the template too. // Pass some methods as jsData so they can be called from the template too.
this.jsData.fetchContent = this.fetchContent.bind(this);
this.jsData.openContent = this.openContent.bind(this); this.jsData.openContent = this.openContent.bind(this);
this.jsData.refreshContent = this.refreshContent.bind(this); this.jsData.refreshContent = this.refreshContent.bind(this);
this.jsData.updateContent = this.updateContent.bind(this); this.jsData.updateContent = this.updateContent.bind(this);