UNPKG

unserver-unify

Version:

25 lines (24 loc) 801 B
angular.module('bamboo.school', ['ui.router']).config( ['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { $stateProvider.state('index.school', { url: '/school/:key', views: { "@index": { templateProvider: function(deviceDetector, $templateFactory) { var url = ''; if (deviceDetector.isMobile() && !deviceDetector.isTablet()) { url = 'app/school/schoolinfo.html'; } else { url = 'app/school/schoolinfo.html'; } return $templateFactory.fromUrl(url); } } }, ncyBreadcrumb: { label: 'school information' }, }) } ]);