Init main-page component

This commit is contained in:
2025-10-25 23:32:14 +02:00
parent 2cc4ffa0eb
commit 1a5899e2bc
5 changed files with 38 additions and 1 deletions

View File

@@ -8,13 +8,15 @@ import { HomeComponent } from './home-component/home-component';
import { provideHttpClient, withFetch } from '@angular/common/http'; import { provideHttpClient, withFetch } from '@angular/common/http';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
import { MainPage } from './main-page/main-page';
@NgModule({ @NgModule({
declarations: [ declarations: [
App, App,
PocModelComponent, PocModelComponent,
HomeComponent HomeComponent,
MainPage
], ],
imports: [ imports: [
AppRoutingModule, AppRoutingModule,

View File

View File

@@ -0,0 +1 @@
<p>main-page works!</p>

View File

@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MainPage } from './main-page';
describe('MainPage', () => {
let component: MainPage;
let fixture: ComponentFixture<MainPage>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [MainPage]
})
.compileComponents();
fixture = TestBed.createComponent(MainPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,11 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-main-page',
standalone: false,
templateUrl: './main-page.html',
styleUrl: './main-page.css'
})
export class MainPage {
}