import { Route } from "@angular/router" ; import { RouteProvider } from "../core/route-provider" ; export function route ( route ) { return function ( target ) { route . component = target ; RouteProvider . addRoute ( route ) ; } ; }