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 'package:angular2/cored.dart' show Component;
import 'package:angular2/router.dart'
show ROUTER_DIRECTIVES, ROUTER_PROVIERS, RouteConfig;
@Component(directives: const [ROUTER_DIRECTIVES])
@RouteConfig(const [
{...},
])
class AppCmp {
// ...
}
bootstrap(AppCmp, [ROUTER_PROVIDERS]);