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'; 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',

View File

@ -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){

View File

@ -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',
}, },
]; ];