From ea8febe3681e3a9fb7a5bc8026231b002b4435cf Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Tue, 18 Jan 2022 16:40:50 -0600 Subject: [PATCH] Create component for business info --- src/app/business/business.component.css | 7 ++++++ src/app/business/business.component.html | 11 +++++++++ src/app/business/business.component.spec.ts | 25 ++++++++++++++++++++ src/app/business/business.component.ts | 26 +++++++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 src/app/business/business.component.css create mode 100644 src/app/business/business.component.html create mode 100644 src/app/business/business.component.spec.ts create mode 100644 src/app/business/business.component.ts diff --git a/src/app/business/business.component.css b/src/app/business/business.component.css new file mode 100644 index 0000000..19740e6 --- /dev/null +++ b/src/app/business/business.component.css @@ -0,0 +1,7 @@ +* { + font-family: 'Spartan', sans-serif; +} +mat-card.centercard{ + max-width: 450px; + border: 1px solid #CCCCCC; +} diff --git a/src/app/business/business.component.html b/src/app/business/business.component.html new file mode 100644 index 0000000..3d82482 --- /dev/null +++ b/src/app/business/business.component.html @@ -0,0 +1,11 @@ + +

business works!

+
+ +

Form

+ + Business Name + + +
+
diff --git a/src/app/business/business.component.spec.ts b/src/app/business/business.component.spec.ts new file mode 100644 index 0000000..98bc922 --- /dev/null +++ b/src/app/business/business.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { BusinessComponent } from './business.component'; + +describe('BusinessComponent', () => { + let component: BusinessComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ BusinessComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(BusinessComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/business/business.component.ts b/src/app/business/business.component.ts new file mode 100644 index 0000000..a734372 --- /dev/null +++ b/src/app/business/business.component.ts @@ -0,0 +1,26 @@ +import { Component, OnInit } from '@angular/core'; +import { FormBuilder, Validators, FormGroup, FormControl } from '@angular/forms'; +import { Owner } from '../owner.model'; +import { UserService } from '../user.service'; + +@Component({ + selector: 'app-business', + templateUrl: './business.component.html', + styleUrls: ['./business.component.css'] +}) +export class BusinessComponent implements OnInit { + + bizForm: FormGroup; + + constructor( + private fb: FormBuilder + ) { + this.bizForm = fb.group({ + name: ['', Validators.required] + }); + } + + ngOnInit(): void { + } + +}