feat: add app shell (angular-material)

Add app shell built using angular-material and flex-layout. Refractor
code due to configuration changes.

Fixes #52
This commit is contained in:
abhay_1806
2018-06-23 20:06:32 +05:30
committed by Abhay Chawla
parent b1c2d6d98e
commit fc7ae1d0ba
98 changed files with 1098 additions and 532 deletions
+6 -2
View File
@@ -1,12 +1,16 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { Route, extract } from '../../app/core';
import { Route, extract } from '../core';
import { AboutComponent } from './about.component';
const routes: Routes = [
Route.withShell([
{ path: 'about', component: AboutComponent, data: { title: extract('About') } }
{
path: 'about',
component: AboutComponent,
data: { title: extract('About') }
}
])
];
+3 -3
View File
@@ -1,10 +1,10 @@
<div class="container-fluid">
<div class="jumbotron text-center">
<div>
<div>
<h1>
<span translate>APP_NAME</span>
</h1>
<p>
<i class="far fa-bookmark"></i> <span translate>Version</span> {{version}}
<span translate>Version</span>{{version}}
</p>
</div>
</div>
+1 -1
View File
@@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core';
import { environment } from '../../environments/environment';
@Component({
selector: 'app-about',
selector: 'mifosx-about',
templateUrl: './about.component.html',
styleUrls: ['./about.component.scss']
})
+1
View File
@@ -1,5 +1,6 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
import { AboutRoutingModule } from './about-routing.module';