commit
This commit is contained in:
1
src/app/pages/home/components/body/body.component.html
Normal file
1
src/app/pages/home/components/body/body.component.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>body works!</p>
|
||||
25
src/app/pages/home/components/body/body.component.spec.ts
Normal file
25
src/app/pages/home/components/body/body.component.spec.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { BodyComponent } from './body.component';
|
||||
|
||||
describe('BodyComponent', () => {
|
||||
let component: BodyComponent;
|
||||
let fixture: ComponentFixture<BodyComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ BodyComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(BodyComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
15
src/app/pages/home/components/body/body.component.ts
Normal file
15
src/app/pages/home/components/body/body.component.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-body',
|
||||
templateUrl: './body.component.html',
|
||||
styleUrls: ['./body.component.scss']
|
||||
})
|
||||
export class BodyComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
||||
1
src/app/pages/home/components/head/head.component.html
Normal file
1
src/app/pages/home/components/head/head.component.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>head works!</p>
|
||||
25
src/app/pages/home/components/head/head.component.spec.ts
Normal file
25
src/app/pages/home/components/head/head.component.spec.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { HeadComponent } from './head.component';
|
||||
|
||||
describe('HeadComponent', () => {
|
||||
let component: HeadComponent;
|
||||
let fixture: ComponentFixture<HeadComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ HeadComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(HeadComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
15
src/app/pages/home/components/head/head.component.ts
Normal file
15
src/app/pages/home/components/head/head.component.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-head',
|
||||
templateUrl: './head.component.html',
|
||||
styleUrls: ['./head.component.scss']
|
||||
})
|
||||
export class HeadComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
||||
11
src/app/pages/home/home.component.html
Normal file
11
src/app/pages/home/home.component.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!--
|
||||
* @Description: {{ByRuin}}
|
||||
* @Version: 2.0
|
||||
* @Author: Ruin 🍭
|
||||
* @Date: 2022-03-03 17:06:15
|
||||
* @LastEditors: 刘引
|
||||
* @LastEditTime: 2022-03-03 17:11:33
|
||||
-->
|
||||
<p>home works!</p>
|
||||
<app-head></app-head>
|
||||
<app-body></app-body>
|
||||
0
src/app/pages/home/home.component.scss
Normal file
0
src/app/pages/home/home.component.scss
Normal file
25
src/app/pages/home/home.component.spec.ts
Normal file
25
src/app/pages/home/home.component.spec.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { HomeComponent } from './home.component';
|
||||
|
||||
describe('HomeComponent', () => {
|
||||
let component: HomeComponent;
|
||||
let fixture: ComponentFixture<HomeComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ HomeComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(HomeComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
15
src/app/pages/home/home.component.ts
Normal file
15
src/app/pages/home/home.component.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
templateUrl: './home.component.html',
|
||||
styleUrls: ['./home.component.scss']
|
||||
})
|
||||
export class HomeComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
||||
11
src/app/pages/home/home.module.ts
Normal file
11
src/app/pages/home/home.module.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { HomeComponent } from './home.component';
|
||||
import { HeadComponent } from './components/head/head.component';
|
||||
import { BodyComponent } from './components/body/body.component';
|
||||
|
||||
@NgModule({
|
||||
declarations: [HomeComponent, HeadComponent, BodyComponent],
|
||||
imports: [CommonModule],
|
||||
})
|
||||
export class HomeModule {}
|
||||
16
src/app/pages/pages.module.ts
Normal file
16
src/app/pages/pages.module.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* @Description: {{ByRuin}}
|
||||
* @Version: 2.0
|
||||
* @Author: Ruin 🍭
|
||||
* @Date: 2022-03-03 17:03:51
|
||||
* @LastEditors: 刘引
|
||||
* @LastEditTime: 2022-03-03 17:09:57
|
||||
*/
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { HomeModule } from './home/home.module';
|
||||
@NgModule({
|
||||
declarations: [],
|
||||
imports: [CommonModule, HomeModule],
|
||||
})
|
||||
export class PagesModule {}
|
||||
Reference in New Issue
Block a user