Sha256: e5ba6a6adc24767ab74f7ff73cbd7770bc80ea140145e22cd96cfbb85b92aac2
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
(function(){ 'use strict'; var router = angular.module('herald.router', [ 'ui.router', 'herald.nodes', 'herald.node', 'herald.report', 'ncy-angular-breadcrumb' ]); router.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise('/'); $stateProvider .state('home', { url: '/', abstract: true, templateUrl: 'general/app.html' }) .state('nodes', { url: '', templateUrl: 'nodes/nodes.html', controller: 'NodesController as ctrl', parent: 'home', ncyBreadcrumb: { label: ' ' } }) .state('node', { url: 'node-{nodeId:int}', templateUrl: 'node/node.html', controller: 'NodeController as ctrl', parent: 'nodes', ncyBreadcrumb: { label: "All reports for: {{ ctrl.nav.node }}" } }) .state('report', { parent: 'node', url: '/report-{reportId:int}', templateUrl: 'report/report.html', controller: 'ReportController as ctrl', ncyBreadcrumb: { label: 'Report: {{ ctrl.nav.report }}' } }) ; }]); })();
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-herald-0.8.1 | lib/puppet-herald/public/router.js |
puppet-herald-0.8.0 | lib/puppet-herald/public/router.js |