@project-sunbird/content-player
Version:
Which renders the contents in both web and devices
18 lines (17 loc) • 837 B
JavaScript
/**
* Plugin to create repo instance and to register repo instance
* @extends EkstepRenderer.Plugin
* @author Akash Gupta <akash.gupta@tarento.com>
*/
Plugin.extend({
_templatePath: undefined,
_type: "userswitcher",
initialize: function() {
console.info('user switch plugin is doing initialize....');
var instance = this;
this._templatePath = org.ekstep.pluginframework.pluginManager.resolvePluginResource(this._manifest.id, this._manifest.ver, "renderer/templates/user-switch-popup.html");
this.controllerPath = org.ekstep.pluginframework.pluginManager.resolvePluginResource(this._manifest.id, this._manifest.ver, "renderer/controller/userSwitcher.js");
org.ekstep.service.controller.loadNgModules(this._templatePath, this.controllerPath);
}
});
//# sourceURL=userSwitcher.js