text: import ListController from './list.controller'
  import FormController from './form.controller'
  
  export const itensConfig = $stateProvider => {
      $stateProvider
        .state("app.item", {
          template: require("@views/default.html"),
          url:"item", 
          redirectTo: "app.item.list"
          })
        .state("app.item.list", {
          template: require("@views/itens/list.html"),
          url: "/list",
          controller: ListController,
          controllerAs:"vm"
          })
        .state("app.item.new", {
          template:require("@views/itens/form.html"),
          url:"/new",
          controller: FormController,
          controllerAs: "vm"
          })
        .state("app.item.edit", {
          template:require("@views/itens/form.html"),
          url:"/{id}",
          controller: FormController,
          controllerAs: "vm"
          });
  
  };
  
  itensConfig.$inject = ["$stateProvider"];