settings-states.js 672 B

123456789101112131415161718192021
  1. function stateConfig($locationProvider, $sceDelegateProvider, $sceProvider, $stateProvider) {
  2. $locationProvider.html5Mode(true);
  3. $sceProvider.enabled(false);
  4. var announcement = {
  5. name: 'home.settings.announcement',
  6. url: "announcement",
  7. templateUrl: "settings/announcement/list.html?" + window.sysVersion,
  8. controller: "announcementCtrl",
  9. resolve: {
  10. load: ['$ocLazyLoad', function ($ocLazyLoad) {
  11. return $ocLazyLoad.load('settings/announcement/list.js?' + window.sysVersion);
  12. }]
  13. }
  14. };
  15. $stateProvider
  16. .state(announcement);
  17. }
  18. module.exports = stateConfig;