import { Routes } from '@angular/router';

export const <%= classify(name) %>ChildrenRoutes: Routes =  [<% if (page.children) { %>
  <% for (let children of childrenRoutes) { %>
    {
      path: '<%=  children.path %>',
      loadChildren: '<%= children.loadChildren %>'
    },
  <% } %><% if (page.defaultPage) { %>
    {
      path: '',
      redirectTo: '<%= page.defaultPage %>',
      pathMatch: 'full'
    }
    <% } %>
  <% } %>
];
