[frontend] Add homepage boilerplate
This commit is contained in:
parent
05d4e01423
commit
5109d296bc
|
@ -3,10 +3,12 @@ import { NgModule } from '@angular/core';
|
||||||
|
|
||||||
import { AppRoutingModule } from './app-routing.module';
|
import { AppRoutingModule } from './app-routing.module';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
|
import { SharedModule } from './shared/shared.module';
|
||||||
|
import { HomepageComponent } from './homepage/homepage.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [AppComponent],
|
declarations: [AppComponent, HomepageComponent],
|
||||||
imports: [BrowserModule, AppRoutingModule],
|
imports: [BrowserModule, AppRoutingModule, SharedModule],
|
||||||
providers: [],
|
providers: [],
|
||||||
bootstrap: [AppComponent],
|
bootstrap: [AppComponent],
|
||||||
})
|
})
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
<p>homepage works!</p>
|
|
@ -0,0 +1,25 @@
|
||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { HomepageComponent } from './homepage.component';
|
||||||
|
|
||||||
|
describe('HomepageComponent', () => {
|
||||||
|
let component: HomepageComponent;
|
||||||
|
let fixture: ComponentFixture<HomepageComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ HomepageComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(HomepageComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
15
kibicara-frontend/src/app/homepage/homepage.component.ts
Normal file
15
kibicara-frontend/src/app/homepage/homepage.component.ts
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-homepage',
|
||||||
|
templateUrl: './homepage.component.html',
|
||||||
|
styleUrls: ['./homepage.component.scss']
|
||||||
|
})
|
||||||
|
export class HomepageComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue