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