MOBILE-3277 siteplugins: Let site plugins use the fetchContent function
parent
d3455aa5c0
commit
f2f17a4d1b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue