Init main-page component
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
0
src/app/main-page/main-page.css
Normal file
0
src/app/main-page/main-page.css
Normal file
1
src/app/main-page/main-page.html
Normal file
1
src/app/main-page/main-page.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<p>main-page works!</p>
|
||||||
23
src/app/main-page/main-page.spec.ts
Normal file
23
src/app/main-page/main-page.spec.ts
Normal 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();
|
||||||
|
});
|
||||||
|
});
|
||||||
11
src/app/main-page/main-page.ts
Normal file
11
src/app/main-page/main-page.ts
Normal 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 {
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user