UNPKG

unserver-unify

Version:

47 lines (45 loc) 1.56 kB
angular.module('bamboo.playback', ['ui.router']).config( ['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { $stateProvider.state('index.playback', { url: "/playback", views: { "@index": { templateProvider: function(deviceDetector, $templateFactory, loginService) { var url = ''; if (deviceDetector.isMobile() && !deviceDetector.isTablet()) { url = 'app/playback/list.html'; } else { url = 'app/playback/list.html'; } return $templateFactory.fromUrl(url); }, //templateUrl: "app/news/list.html", } }, ncyBreadcrumb: { label: "Replay List" // {{setting.totalCount}} }, }).state('index.playback.detail', { url: '/:id', views: { "@index": { templateProvider: function(deviceDetector, $templateFactory, loginService) { var url = ''; if (deviceDetector.isMobile() && !deviceDetector.isTablet()) { url = 'app/playback/detail.html'; } else { url = 'app/playback/detail.html'; } return $templateFactory.fromUrl(url); }, //templateUrl: 'app/news/detail.html' } }, ncyBreadcrumb: { label: 'Detail' }, }); } ]);