123456789101112131415161718192021 |
- function stateConfig($locationProvider, $sceDelegateProvider, $sceProvider, $stateProvider) {
- $locationProvider.html5Mode(true);
- $sceProvider.enabled(false);
- var announcement = {
- name: 'home.settings.announcement',
- url: "announcement",
- templateUrl: "settings/announcement/list.html?" + window.sysVersion,
- controller: "announcementCtrl",
- resolve: {
- load: ['$ocLazyLoad', function ($ocLazyLoad) {
- return $ocLazyLoad.load('settings/announcement/list.js?' + window.sysVersion);
- }]
- }
- };
- $stateProvider
- .state(announcement);
- }
- module.exports = stateConfig;
|