removed home from path
This commit is contained in:
parent
d6977b4664
commit
a4c96299b1
@ -3,7 +3,7 @@ import { Routes, RouterModule } from '@angular/router';
|
|||||||
import { NotFoundComponent } from './view/home/not-found/not-found.component';
|
import { NotFoundComponent } from './view/home/not-found/not-found.component';
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{ path: '', redirectTo: 'home', pathMatch: 'full' },
|
// { path: '', redirectTo: 'home', pathMatch: 'full' },
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
loadChildren: './view/view.module#ViewModule',
|
loadChildren: './view/view.module#ViewModule',
|
||||||
|
@ -51,6 +51,8 @@ import {
|
|||||||
return this._options;
|
return this._options;
|
||||||
}
|
}
|
||||||
showChart(){
|
showChart(){
|
||||||
|
try {
|
||||||
|
if (typeof this._plotlyJs.newPlot === "function") {
|
||||||
this._plotlyJs.newPlot(
|
this._plotlyJs.newPlot(
|
||||||
this.plotly.nativeElement,
|
this.plotly.nativeElement,
|
||||||
this._data,
|
this._data,
|
||||||
@ -58,6 +60,13 @@ import {
|
|||||||
this._options,
|
this._options,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
console.error('Log error', error);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
ngAfterViewInit() {
|
ngAfterViewInit() {
|
||||||
if(this._plotlyJs){
|
if(this._plotlyJs){
|
||||||
this.showChart();
|
this.showChart();
|
||||||
|
@ -5,7 +5,7 @@ import { SiteLayoutComponent } from '../shared/components/layouts/site-layout/si
|
|||||||
|
|
||||||
const viewRoutes: Routes = [
|
const viewRoutes: Routes = [
|
||||||
{
|
{
|
||||||
path: 'home',
|
path: '',
|
||||||
loadChildren: './home/home.module#HomeModule',
|
loadChildren: './home/home.module#HomeModule',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user