ROUTER_DIRECTIVES

export ROUTER_DIRECTIVES : any[]

exported from angular2/router defined in angular2/router.ts (line 58)

A list of directives. To use the router directives like RouterOutlet and RouterLink, add this to your directives array in the View decorator of your component.

Example (live demo)

import {Component} from 'angular2/core';
import {ROUTER_DIRECTIVES, ROUTER_PROVIDERS, RouteConfig} from 'angular2/router';

@Component({directives: [ROUTER_DIRECTIVES]})
@RouteConfig([
 {...},
])
class AppCmp {
   // ...
}

bootstrap(AppCmp, [ROUTER_PROVIDERS]);