Try to improve global page template.

This commit is contained in:
Alexis Lahouze 2017-09-16 19:47:07 +02:00
parent 7067366ac1
commit ca9bccaf92
2 changed files with 19 additions and 6 deletions

View File

@ -6,14 +6,22 @@ import { Component } from '@angular/core';
selector: 'accountant',
styles: [ require('./main.scss').toString() ],
template: `
<md-sidenav-container>
<div>
<md-toolbar class="mat-elevation-z6" color="primary">
<div class="acc-toolbar">
<a md-button style="text-transform: uppercase"
routerLink="/accounts">
Accountant
</a>
</div>
</md-toolbar>
<div class="acc-content">
<router-outlet></router-outlet>
</div>
</div>
</md-sidenav-container>
`
})
export class AppComponent { }

View File

@ -3,7 +3,11 @@ import 'zone.js';
import 'reflect-metadata';
import { NgModule } from '@angular/core';
import { MdButtonModule, MdToolbarModule } from '@angular/material';
import {
MdButtonModule,
MdToolbarModule,
MdSidenavModule
} from '@angular/material';
import { FlexLayoutModule } from '@angular/flex-layout';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@ -39,6 +43,7 @@ import { ApiBaseURL, LogLevel } from './app.config';
FlexLayoutModule,
MdButtonModule,
MdToolbarModule,
MdSidenavModule,
LoginModule,
NgLoggerModule.forRoot(LogLevel),
ToastrModule.forRoot(),