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';
|
||||
|
||||
export const routes: Routes = [
|
||||
{ path: '', redirectTo: 'home', pathMatch: 'full' },
|
||||
// { path: '', redirectTo: 'home', pathMatch: 'full' },
|
||||
{
|
||||
path: '',
|
||||
loadChildren: './view/view.module#ViewModule',
|
||||
|
@ -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){
|
||||
|
@ -5,7 +5,7 @@ import { SiteLayoutComponent } from '../shared/components/layouts/site-layout/si
|
||||
|
||||
const viewRoutes: Routes = [
|
||||
{
|
||||
path: 'home',
|
||||
path: '',
|
||||
loadChildren: './home/home.module#HomeModule',
|
||||
},
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user