module.js 739 B

12345678910111213141516171819202122232425262728
  1. define([
  2. 'app/plugins/sdk'
  3. ], function(sdk) {
  4. var BoilerPlatePanel = (function(_super) {
  5. function BoilerPlatePanel($scope, $injector) {
  6. _super.call(this, $scope, $injector);
  7. }
  8. // you do not need a templateUrl, you can use a inline template here
  9. // BoilerPlatePanel.template = '<h2>boilerplate</h2>';
  10. // all panel static assets can be accessed via 'public/plugins/<plugin-id>/<file>
  11. BoilerPlatePanel.templateUrl = 'public/plugins/panel-boilerplate-es5/panel.html';
  12. BoilerPlatePanel.prototype = Object.create(_super.prototype);
  13. BoilerPlatePanel.prototype.constructor = BoilerPlatePanel;
  14. return BoilerPlatePanel;
  15. })(sdk.PanelCtrl);
  16. return {
  17. PanelCtrl: BoilerPlatePanel
  18. };
  19. });