import { Route } from '@angular/router' ; import { UserRouteAccessService } from 'app/core' ; import { PasswordComponent } from './password.component' ; export const passwordRoute = { path : 'password' , component : PasswordComponent , data : { authorities : [ 'ROLE_USER' ] , pageTitle : 'global.menu.account.password' } , canActivate : [ UserRouteAccessService ] } ;