module.js 577 B

12345678910111213141516171819202122232425262728
  1. define([
  2. 'angular',
  3. 'app/app'
  4. ], function(angular, app) {
  5. var module = angular.module('nginx-app', []);
  6. app.default.useModule(module);
  7. module.config(function($routeProvider) {
  8. $routeProvider
  9. .when('/nginx/stream', {
  10. templateUrl: 'public/plugins/nginx-app/partials/stream.html',
  11. });
  12. });
  13. function NginxConfigCtrl() {
  14. this.appEditCtrl.beforeUpdate = function() {
  15. alert('before!');
  16. };
  17. }
  18. NginxConfigCtrl.templateUrl = 'public/plugins/nginx-app/partials/config.html';
  19. return {
  20. ConfigCtrl: NginxConfigCtrl
  21. };
  22. });