Skip to content

Instantly share code, notes, and snippets.

@adityatyagi
Created December 11, 2019 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adityatyagi/652a75d8acc8c32d077259c86dab0b8e to your computer and use it in GitHub Desktop.
Save adityatyagi/652a75d8acc8c32d077259c86dab0b8e to your computer and use it in GitHub Desktop.
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