Move groups and hosts in inventory. Panel pattern.

Copy working. Cleaned up.
This commit is contained in:
Ken Hoes
2016-04-01 10:30:14 -04:00
parent 2d9e34162c
commit e6cbe5589e
17 changed files with 819 additions and 18 deletions

View File

@@ -1,10 +1,9 @@
export default function($stateProvider){
this.$get = function(){
export default function($stateProvider) {
this.$get = function() {
return {
addState: function(state) {
var route = state.route || state.url;
$stateProvider.state(state.name , {
$stateProvider.state(state.name, {
url: route,
controller: state.controller,
templateUrl: state.templateUrl,
@@ -14,6 +13,8 @@ export default function($stateProvider){
ncyBreadcrumb: state.ncyBreadcrumb,
onEnter: state.onEnter,
onExit: state.onExit,
template: state.template,
controllerAs: state.controllerAs
views: state.views
});
}