removed home from path

This commit is contained in:
sabash 2019-07-23 18:02:32 +05:30
parent d6977b4664
commit a4c96299b1
3 changed files with 17 additions and 8 deletions

View File

@ -3,7 +3,7 @@ import { Routes, RouterModule } from '@angular/router';
import { NotFoundComponent } from './view/home/not-found/not-found.component';
export const routes: Routes = [
{ path: '', redirectTo: 'home', pathMatch: 'full' },
// { path: '', redirectTo: 'home', pathMatch: 'full' },
{
path: '',
loadChildren: './view/view.module#ViewModule',

View File

@ -51,12 +51,21 @@ import {
return this._options;
}
showChart(){
this._plotlyJs.newPlot(
this.plotly.nativeElement,
this._data,
this._layout,
this._options,
);
try {
if (typeof this._plotlyJs.newPlot === "function") {
this._plotlyJs.newPlot(
this.plotly.nativeElement,
this._data,
this._layout,
this._options,
);
}
}
catch (error) {
console.error('Log error', error);
}
}
ngAfterViewInit() {
if(this._plotlyJs){

View File

@ -5,7 +5,7 @@ import { SiteLayoutComponent } from '../shared/components/layouts/site-layout/si
const viewRoutes: Routes = [
{
path: 'home',
path: '',
loadChildren: './home/home.module#HomeModule',
},
];