diff --git a/angular.json b/angular.json index 4925da9..01e81b9 100644 --- a/angular.json +++ b/angular.json @@ -99,5 +99,8 @@ } } } + }, + "cli": { + "analytics": false } } diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 1a08c80..eb687f2 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -12,6 +12,8 @@ import { BrowserModule } from '@angular/platform-browser'; import { HttpClientModule } from '@angular/common/http'; import { SharedModule } from './shared/shared.module'; import { AppShellComponent } from './shared/layout/app-shell/app-shell.component'; +import { AppRoutingModule, routes } from './app.routes'; +import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; @NgModule({ declarations: [ @@ -23,8 +25,10 @@ import { AppShellComponent } from './shared/layout/app-shell/app-shell.component HttpClientModule, BrowserModule, RouterOutlet, + AppRoutingModule, SharedModule ], - bootstrap: [AppComponent] + bootstrap: [AppComponent], + providers: [provideAnimationsAsync()] }) export class AppModule {} diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 495b372..c328221 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,5 +1,6 @@ -import { Routes } from '@angular/router'; +import { RouterModule, Routes } from '@angular/router'; import { AppShellComponent } from './shared/layout/app-shell/app-shell.component'; +import { NgModule } from '@angular/core'; export const routes: Routes = [ { @@ -13,3 +14,9 @@ export const routes: Routes = [ loadChildren: () => import('./features/client/client.module').then((m) => m.ClientModule), } ]; + +@NgModule({ + imports: [RouterModule.forRoot(routes)], + exports: [RouterModule] +}) +export class AppRoutingModule { } \ No newline at end of file diff --git a/src/app/features/client/client-routing.module.ts b/src/app/features/client/client-routing.module.ts index d90cbb4..99f7956 100644 --- a/src/app/features/client/client-routing.module.ts +++ b/src/app/features/client/client-routing.module.ts @@ -1,7 +1,13 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; +import { IndexComponent } from './pages/index/index.component'; -const routes: Routes = []; +const routes: Routes = [ + { + path: '', + component: IndexComponent + } +]; @NgModule({ imports: [RouterModule.forChild(routes)], diff --git a/src/app/features/client/client.module.ts b/src/app/features/client/client.module.ts index bac9276..99e42ef 100644 --- a/src/app/features/client/client.module.ts +++ b/src/app/features/client/client.module.ts @@ -2,10 +2,11 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ClientRoutingModule } from './client-routing.module'; +import { IndexComponent } from './pages/index/index.component'; @NgModule({ - declarations: [], + declarations: [IndexComponent], imports: [ CommonModule, ClientRoutingModule diff --git a/src/app/features/client/pages/index/index.component.html b/src/app/features/client/pages/index/index.component.html new file mode 100644 index 0000000..f1b8608 --- /dev/null +++ b/src/app/features/client/pages/index/index.component.html @@ -0,0 +1 @@ +

index works!

diff --git a/src/app/features/client/pages/index/index.component.scss b/src/app/features/client/pages/index/index.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/features/client/pages/index/index.component.spec.ts b/src/app/features/client/pages/index/index.component.spec.ts new file mode 100644 index 0000000..2e2d8ea --- /dev/null +++ b/src/app/features/client/pages/index/index.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { IndexComponent } from './index.component'; + +describe('IndexComponent', () => { + let component: IndexComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [IndexComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(IndexComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/features/client/pages/index/index.component.ts b/src/app/features/client/pages/index/index.component.ts new file mode 100644 index 0000000..e3e96bd --- /dev/null +++ b/src/app/features/client/pages/index/index.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-index', + templateUrl: './index.component.html', + styleUrl: './index.component.scss' +}) +export class IndexComponent { + +}