@angular/router-deprecated
Version:
32 lines (31 loc) • 667 B
TypeScript
/**
* A list of providers. To use the router, you must add this to your application.
*
* ### Example ([live demo](http://plnkr.co/edit/iRUP8B5OUbxCWQ3AcIDm))
*
* ```
* import {Component} from '@angular/core';
* import {
* ROUTER_DIRECTIVES,
* ROUTER_PROVIDERS,
* RouteConfig
* } from '@angular/router-deprecated';
*
* @Component({directives: [ROUTER_DIRECTIVES]})
* @RouteConfig([
* {...},
* ])
* class AppCmp {
* // ...
* }
*
* bootstrap(AppCmp, [ROUTER_PROVIDERS]);
* ```
*/
export declare const ROUTER_PROVIDERS: any[];
/**
* Use {@link ROUTER_PROVIDERS} instead.
*
* @deprecated
*/
export declare const ROUTER_BINDINGS: any[];