Sunday 26 March 2023

Dodanie nowego komponentu - app.module.ts


  1. import { YourNameComponent } from './pages/admin/YourName/YourName.component';

  2. appRoutes: Routes = [
    {
    path: 'admin/YourName',
    component: YourNameComponent,
    canActivate: [AuthenticationGuard],
    data: { title: 'Your Name', isNew: true }
    },

  3. @NgModule({
      declarations: [
        YourNameComponent

No comments:

Post a Comment