module.ts 587 B

123456789101112131415161718192021222324252627282930
  1. ///<reference path="../../../headers/common.d.ts" />
  2. import {PanelDirective, PanelCtrl} from '../../../features/panel/panel';
  3. class TestPanelCtrl extends PanelCtrl {
  4. constructor($scope) {
  5. super($scope);
  6. }
  7. }
  8. class TestPanel extends PanelDirective {
  9. templateUrl = `app/plugins/panel/test/module.html`;
  10. controller = TestPanelCtrl;
  11. constructor($http) {
  12. super();
  13. console.log('panel ctor: ', $http);
  14. }
  15. link(scope) {
  16. console.log('panel link: ', scope.ctrl.panel.id);
  17. }
  18. }
  19. export {
  20. TestPanelCtrl,
  21. // testPanelDirective as panel,
  22. TestPanel as Panel,
  23. }