UNPKG

1.57 kBSource Map (JSON)View Raw
1{"version":3,"file":"router_providers.js","sourceRoot":"","sources":["../../../../modules/@angular/router-deprecated/src/router_providers.ts"],"names":[],"mappings":";AAAA,uBAA+B,iBAAiB,CAAC,CAAA;AACjD,iCAAsC,2BAA2B,CAAC,CAAA;AAElE,wCAAsC,2BAA2B,CAAC,CAAA;AAGlE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACU,wBAAgB,GAA4B;IACvD,iDAAuB;IACvB,kBAAkB,CAAC;IACf,uBAAuB,CAAC,EAAC,OAAO,EAAE,yBAAgB,EAAE,QAAQ,EAAE,0CAAuB,EAAC,CAAC;CAC5F,CAAC;AAEF;;;;GAIG;AACU,uBAAe,GAAsB,wBAAgB,CAAC","sourcesContent":["import {PlatformLocation} from '@angular/common';\nimport {BrowserPlatformLocation} from '@angular/platform-browser';\n\nimport {ROUTER_PROVIDERS_COMMON} from './router_providers_common';\n\n\n/**\n * A list of providers. To use the router, you must add this to your application.\n *\n * ### Example ([live demo](http://plnkr.co/edit/iRUP8B5OUbxCWQ3AcIDm))\n *\n * ```\n * import {Component} from '@angular/core';\n * import {\n * ROUTER_DIRECTIVES,\n * ROUTER_PROVIDERS,\n * RouteConfig\n * } from '@angular/router-deprecated';\n *\n * @Component({directives: [ROUTER_DIRECTIVES]})\n * @RouteConfig([\n * {...},\n * ])\n * class AppCmp {\n * // ...\n * }\n *\n * bootstrap(AppCmp, [ROUTER_PROVIDERS]);\n * ```\n */\nexport const ROUTER_PROVIDERS: any[] = /*@ts2dart_const*/[\n ROUTER_PROVIDERS_COMMON,\n /*@ts2dart_const*/ (\n /* @ts2dart_Provider */ {provide: PlatformLocation, useClass: BrowserPlatformLocation}),\n];\n\n/**\n * Use {@link ROUTER_PROVIDERS} instead.\n *\n * @deprecated\n */\nexport const ROUTER_BINDINGS = /*@ts2dart_const*/ ROUTER_PROVIDERS;\n"]}
\No newline at end of file