Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { ProjectLayoutComponent } from "./core/layouts/project-layout/project-layout.component";
import { ALL_ROUTES } from "./core/routes/all-routes";
const routes: Routes = [
{
path: "",
component: ProjectLayoutComponent,
children: ALL_ROUTES
}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.