export PLATFORM_DIRECTIVES : OpaqueToken
export PLATFORM_DIRECTIVES : OpaqueToken
exported from angular2/compiler defined in angular2/src/core/platform_directives_and_pipes.ts (line 28)
A token that can be provided when bootstraping an application to make an array of directives available in every component of the application.
Example
import {PLATFORM_DIRECTIVES} from 'angular2/core';
import {OtherDirective} from './myDirectives';
@Component({
selector: 'my-component',
template: `
<!-- can use other directive even though the component does not list it in `directives` -->
<other-directive></other-directive>
`
})
export class MyComponent {
...
}
bootstrap(MyComponent, [provide(PLATFORM_DIRECTIVES, {useValue: [OtherDirective], multi:true})]);