IDK
This commit is contained in:
parent
35d74f27a3
commit
09c5106915
16 changed files with 219 additions and 91 deletions
|
@ -0,0 +1 @@
|
|||
<app-home></app-home>
|
|
@ -1,10 +1,11 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
import {HomeComponent} from './home/home.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
standalone: true,
|
||||
imports: [RouterOutlet],
|
||||
imports: [RouterOutlet, HomeComponent],
|
||||
templateUrl: './app.component.html',
|
||||
styleUrl: './app.component.css'
|
||||
})
|
||||
|
|
0
src/app/home/home.component.css
Normal file
0
src/app/home/home.component.css
Normal file
10
src/app/home/home.component.html
Normal file
10
src/app/home/home.component.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<section class="m-5">
|
||||
<form class="input-group">
|
||||
<input class="form-control" type="text" placeholder="Filter by city"/>
|
||||
<button class="btn btn-primary" type="button">Search</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<app-housing-location></app-housing-location>
|
||||
</section>
|
23
src/app/home/home.component.spec.ts
Normal file
23
src/app/home/home.component.spec.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
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({
|
||||
imports: [HomeComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(HomeComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
15
src/app/home/home.component.ts
Normal file
15
src/app/home/home.component.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { Component } from '@angular/core';
|
||||
import {HousingLocationComponent} from '../housing-location/housing-location.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
standalone: true,
|
||||
imports: [
|
||||
HousingLocationComponent
|
||||
],
|
||||
templateUrl: './home.component.html',
|
||||
styleUrl: './home.component.css'
|
||||
})
|
||||
export class HomeComponent {
|
||||
|
||||
}
|
0
src/app/housing-location/housing-location.component.css
Normal file
0
src/app/housing-location/housing-location.component.css
Normal file
1
src/app/housing-location/housing-location.component.html
Normal file
1
src/app/housing-location/housing-location.component.html
Normal file
|
@ -0,0 +1 @@
|
|||
<p>housing-location works!</p>
|
23
src/app/housing-location/housing-location.component.spec.ts
Normal file
23
src/app/housing-location/housing-location.component.spec.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { HousingLocationComponent } from './housing-location.component';
|
||||
|
||||
describe('HousingLocationComponent', () => {
|
||||
let component: HousingLocationComponent;
|
||||
let fixture: ComponentFixture<HousingLocationComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [HousingLocationComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(HousingLocationComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
12
src/app/housing-location/housing-location.component.ts
Normal file
12
src/app/housing-location/housing-location.component.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-housing-location',
|
||||
standalone: true,
|
||||
imports: [],
|
||||
templateUrl: './housing-location.component.html',
|
||||
styleUrl: './housing-location.component.css'
|
||||
})
|
||||
export class HousingLocationComponent {
|
||||
|
||||
}
|
|
@ -1,3 +1,5 @@
|
|||
/// <reference types="@angular/localize" />
|
||||
|
||||
import { bootstrapApplication } from '@angular/platform-browser';
|
||||
import { appConfig } from './app/app.config';
|
||||
import { AppComponent } from './app/app.component';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue