Skip to content

Commit

Permalink
created a landing page component
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickNgare committed Jan 12, 2018
1 parent 021c725 commit ba69d0e
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import { NgModule } from '@angular/core';


import { AppComponent } from './app.component';
import { LandingPageComponent } from './landing-page/landing-page.component';


@NgModule({
declarations: [
AppComponent
AppComponent,
LandingPageComponent
],
imports: [
BrowserModule
Expand Down
Empty file.
3 changes: 3 additions & 0 deletions src/app/landing-page/landing-page.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
landing-page works!
</p>
25 changes: 25 additions & 0 deletions src/app/landing-page/landing-page.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { LandingPageComponent } from './landing-page.component';

describe('LandingPageComponent', () => {
let component: LandingPageComponent;
let fixture: ComponentFixture<LandingPageComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ LandingPageComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(LandingPageComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions src/app/landing-page/landing-page.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-landing-page',
templateUrl: './landing-page.component.html',
styleUrls: ['./landing-page.component.css']
})
export class LandingPageComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}

0 comments on commit ba69d0e

Please sign in to comment.