Sha256: d183c85fb8db177f855efa0297944b22b205cba4fc12e2c350226ecb0ace7782

Contents?: true

Size: 1.28 KB

Versions: 15

Compression:

Stored size: 1.28 KB

Contents

var app = angular.module('PraxisDocBrowser', ['ui.router', 'ui.bootstrap', 'ngSanitize']);

app.config(function ($stateProvider, $urlRouterProvider, $uiViewScrollProvider) {

  $uiViewScrollProvider.useAnchorScroll();

  $urlRouterProvider
    .otherwise('/');

  $stateProvider
    .state('root', {
      abstract: true,
      templateUrl: 'views/layout.html'
    })
    .state('root.home', {
      url: '/',
      templateUrl: 'views/home.html'
    })
    .state('root.controller', {
      url: '/:version/controller/:controller',
      templateUrl: 'views/controller.html',
      controller: 'ControllerCtrl'
    })
    .state('root.type', {
      url: '/:version/type/:type',
      templateUrl: 'views/type.html',
      controller: 'TypeCtrl'
    })
    .state('root.action', {
      url: '/:version/controller/:controller/:action',
      templateUrl: 'views/action.html',
      controller: 'ActionCtrl'
    })
    .state('root.trait', {
      url: '/:version/trait/:trait',
      templateUrl: 'views/trait.html',
      controller: 'TraitCtrl'
    })
    .state('root.builtin', {
      abstract: true,
      url: '/builtin',
      template: '<ui-view/>'
    })
    .state('root.builtin.field-selector', {
      url: '/field-selector',
      templateUrl: 'views/builtin/field-selector.html'
    });
});

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
praxis-2.0.pre.9 lib/api_browser/app/js/app.js
praxis-2.0.pre.8 lib/api_browser/app/js/app.js
praxis-2.0.pre.7 lib/api_browser/app/js/app.js
praxis-2.0.pre.6 lib/api_browser/app/js/app.js
praxis-2.0.pre.5 lib/api_browser/app/js/app.js
praxis-2.0.pre.4 lib/api_browser/app/js/app.js
praxis-2.0.pre.3 lib/api_browser/app/js/app.js
praxis-2.0.pre.2 lib/api_browser/app/js/app.js
praxis-2.0.pre.1 lib/api_browser/app/js/app.js
praxis-0.22.pre.2 lib/api_browser/app/js/app.js
praxis-0.22.pre.1 lib/api_browser/app/js/app.js
praxis-0.21 lib/api_browser/app/js/app.js
praxis-0.20.1 lib/api_browser/app/js/app.js
praxis-0.20.0 lib/api_browser/app/js/app.js
praxis-0.19.0 lib/api_browser/app/js/app.js