layout
This commit is contained in:
parent
fcec39e126
commit
a09706bcd3
5
src/app/commons/layouts/footer/footer.component.html
Normal file
5
src/app/commons/layouts/footer/footer.component.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<td-layout-footer>
|
||||
<div layout="row" layout-align="start center">
|
||||
<span class="mat-caption">Copyright © 2017 Loafle. All rights reserved</span>
|
||||
</div>
|
||||
</td-layout-footer>
|
25
src/app/commons/layouts/footer/footer.component.spec.ts
Normal file
25
src/app/commons/layouts/footer/footer.component.spec.ts
Normal file
|
@ -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
src/app/commons/layouts/footer/footer.component.ts
Normal file
15
src/app/commons/layouts/footer/footer.component.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'of-footer',
|
||||
templateUrl: './footer.component.html',
|
||||
styleUrls: ['./footer.component.scss']
|
||||
})
|
||||
export class FooterComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
|
@ -2,11 +2,12 @@ import { NgModule } from '@angular/core';
|
|||
import { CommonModule } from '@angular/common';
|
||||
import { SidebarComponent } from './sidebar/sidebar.component';
|
||||
import { HeaderComponent } from './header/header.component';
|
||||
import { FooterComponent } from './footer/footer.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule
|
||||
],
|
||||
declarations: [SidebarComponent, HeaderComponent]
|
||||
declarations: [SidebarComponent, HeaderComponent, FooterComponent]
|
||||
})
|
||||
export class LayoutsModule { }
|
||||
|
|
|
@ -1,23 +1,12 @@
|
|||
<td-layout>
|
||||
<td-layout-nav>
|
||||
|
||||
<of-header></of-header>
|
||||
|
||||
<mat-sidenav-container fullscreen>
|
||||
<of-sidebar></of-sidebar>
|
||||
|
||||
<div tdMediaToggle="gt-xs" [mediaClasses]="['push-md']">
|
||||
<router-outlet></router-outlet>
|
||||
</div>
|
||||
|
||||
</mat-sidenav-container>
|
||||
|
||||
</td-layout-nav>
|
||||
|
||||
<td-layout-footer>
|
||||
<div layout="row" layout-align="start center">
|
||||
<span class="mat-caption">Copyright © 2017 Loafle. All rights reserved</span>
|
||||
</div>
|
||||
</td-layout-footer>
|
||||
|
||||
<of-footer></of-footer>
|
||||
</td-layout>
|
|
@ -6,6 +6,7 @@ import { SidebarComponent } from 'app/commons/layouts/sidebar/sidebar.component'
|
|||
import { CovalentModule } from 'app/commons/ui/covalent/covalent.module';
|
||||
import { MaterialModule } from 'app/commons/ui/material/material.module';
|
||||
import { HeaderComponent } from 'app/commons/layouts/header/header.component';
|
||||
import { FooterComponent } from 'app/commons/layouts/footer/footer.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
|
@ -17,7 +18,8 @@ import { HeaderComponent } from 'app/commons/layouts/header/header.component';
|
|||
declarations: [
|
||||
PagesComponent,
|
||||
SidebarComponent,
|
||||
HeaderComponent
|
||||
HeaderComponent,
|
||||
FooterComponent,
|
||||
]
|
||||
})
|
||||
export class PagesModule { }
|
||||
|
|
Loading…
Reference in New Issue
Block a user