diff --git a/src/app/app.component.html b/src/app/app.component.html
index cb1e860..0727e79 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -1,3 +1,8 @@
-
- AppComponent 指定內容
-
+
+ 這是標題表單
+ 標題副表單
+ 表單內容
+
+
+
+
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 48e3f3f..bf2e200 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -5,11 +5,13 @@ import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ChildComponent } from './child/child.component';
+import { FormContainerComponent } from './form-container/form-container.component';
@NgModule({
declarations: [
AppComponent,
- ChildComponent
+ ChildComponent,
+ FormContainerComponent
],
imports: [
BrowserModule,
diff --git a/src/app/form-container/form-container.component.css b/src/app/form-container/form-container.component.css
new file mode 100644
index 0000000..2ab5d69
--- /dev/null
+++ b/src/app/form-container/form-container.component.css
@@ -0,0 +1,24 @@
+:host {
+ display: block;
+ border: solid 1px #aaa;
+}
+
+.title {
+ display: flex;
+ padding: 0 10px;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1px solid #aaa;
+}
+
+.content {
+ padding: 10px;
+ min-height: 100px;
+}
+
+.button {
+ padding: 10px;
+ border-top: 1px solid #aaa;
+ text-align: center;
+}
diff --git a/src/app/form-container/form-container.component.html b/src/app/form-container/form-container.component.html
new file mode 100644
index 0000000..f775757
--- /dev/null
+++ b/src/app/form-container/form-container.component.html
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/form-container/form-container.component.spec.ts b/src/app/form-container/form-container.component.spec.ts
new file mode 100644
index 0000000..3fc3a58
--- /dev/null
+++ b/src/app/form-container/form-container.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { FormContainerComponent } from './form-container.component';
+
+describe('FormContainerComponent', () => {
+ let component: FormContainerComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [ FormContainerComponent ]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(FormContainerComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/form-container/form-container.component.ts b/src/app/form-container/form-container.component.ts
new file mode 100644
index 0000000..86019be
--- /dev/null
+++ b/src/app/form-container/form-container.component.ts
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+ selector: 'app-form-container',
+ templateUrl: './form-container.component.html',
+ styleUrls: ['./form-container.component.css']
+})
+export class FormContainerComponent implements OnInit {
+
+ constructor() { }
+
+ ngOnInit(): void {
+ }
+
+}