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', selector: 'accountant',
styles: [ require('./main.scss').toString() ], styles: [ require('./main.scss').toString() ],
template: ` template: `
<md-sidenav-container>
<div>
<md-toolbar class="mat-elevation-z6" color="primary"> <md-toolbar class="mat-elevation-z6" color="primary">
<div class="acc-toolbar">
<a md-button style="text-transform: uppercase" <a md-button style="text-transform: uppercase"
routerLink="/accounts"> routerLink="/accounts">
Accountant Accountant
</a> </a>
</div>
</md-toolbar> </md-toolbar>
<div class="acc-content">
<router-outlet></router-outlet> <router-outlet></router-outlet>
</div>
</div>
</md-sidenav-container>
` `
}) })
export class AppComponent { } export class AppComponent { }

View File

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