This commit is contained in:
Phan Huy Tran 2024-11-13 09:28:06 +01:00
parent 35d74f27a3
commit 09c5106915
16 changed files with 219 additions and 91 deletions

View file

@ -0,0 +1 @@
<app-home></app-home>

View file

@ -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'
})

View file

View 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>

View 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();
});
});

View 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 {
}

View file

@ -0,0 +1 @@
<p>housing-location works!</p>

View 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();
});
});

View 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 {
}

View file

@ -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';