Browse Source

web-ui: Add FooterComponent

scalafmt-draft
Alexis Hernandez 7 years ago
parent
commit
7b85e46439
  1. 1
      web-ui/src/app/app.component.html
  2. 4
      web-ui/src/app/app.module.ts
  3. 0
      web-ui/src/app/components/footer/footer.component.css
  4. 3
      web-ui/src/app/components/footer/footer.component.html
  5. 25
      web-ui/src/app/components/footer/footer.component.spec.ts
  6. 15
      web-ui/src/app/components/footer/footer.component.ts

1
web-ui/src/app/app.component.html

@ -1,2 +1,3 @@
<router-outlet></router-outlet>
<app-footer></app-footer>

4
web-ui/src/app/app.module.ts

@ -16,11 +16,13 @@ import { LanguageService } from './services/language.service';
import { AppComponent } from './app.component';
import { HomeComponent } from './components/home/home.component';
import { FooterComponent } from './components/footer/footer.component';
@NgModule({
declarations: [
AppComponent,
HomeComponent
HomeComponent,
FooterComponent
],
imports: [
AppRoutingModule,

0
web-ui/src/app/components/footer/footer.component.css

3
web-ui/src/app/components/footer/footer.component.html

@ -0,0 +1,3 @@
<p>
footer works!
</p>

25
web-ui/src/app/components/footer/footer.component.spec.ts

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FooterComponent } from './footer.component';
describe('FooterComponent', () => {
let component: FooterComponent;
let fixture: ComponentFixture<FooterComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ FooterComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(FooterComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

15
web-ui/src/app/components/footer/footer.component.ts

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-footer',
templateUrl: './footer.component.html',
styleUrls: ['./footer.component.css']
})
export class FooterComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
Loading…
Cancel
Save