@project-sunbird/content-player
Version:
Which renders the contents in both web and devices
19 lines (18 loc) • 772 B
JavaScript
/**
* Plugin to create repo instance and to register repo instance
* @extends EkstepRenderer.Plugin
* @author Manjunath Davanam <manjunathd@ilimi.in>
* ref: http://ify.io/lazy-loading-in-angularjs/
*/
org.ekstep.contentrenderer.baseEndepage.extend({
myApp: undefined,
templatePath : undefined,
controllerPath:undefined,
_ngScopeVar: "endPage",
_injectTemplateFn: undefined,
initialize: function(data) {
this.templatePath = EkstepRendererAPI.resolvePluginResource(data.id, data.ver, "renderer/templates/end.html");
this.controllerPath = EkstepRendererAPI.resolvePluginResource(data.id, data.ver, "renderer/js/endpageApp.js");
org.ekstep.service.controller.loadNgModules(this.templatePath, this.controllerPath);
}
})