import {TEMPLATE_TRANSFORMS} from 'angular2/compiler'; import {RouterLinkTransform} from 'angular2/src/router/directives/router_link_transform'; export {RouterLinkTransform} from 'angular2/src/router/directives/router_link_transform'; /** * Enables the router link DSL. * * Warning. This feature is experimental and can change. * * To enable the transformer pass the router link DSL provider to `bootstrap`. * * ## Example: * ``` * import {bootstrap} from 'angular2/platform/browser'; * import {ROUTER_LINK_DSL_PROVIDER} from 'angular2/router/router_link_dsl'; * * bootstrap(CustomApp, [ROUTER_LINK_DSL_PROVIDER]); * ``` * * The DSL allows you to express router links as follows: * ``` * * * * * * * ``` */ export const ROUTER_LINK_DSL_PROVIDER = /*@ts2dart_const*/ /* @ts2dart_Provider */ { provide: TEMPLATE_TRANSFORMS, useClass: RouterLinkTransform, multi: true };