
.l-main-section
  h2 coreDirectives <span class="type">variable</span>
  p.location-badge.
    exported from <a href='../directives'>angular2/directives</a>
    defined in <a href="https://github.com/angular/angular/tree/3a0410a/modules/angular2/directives.ts#L62-L63">angular2/directives.ts (line 62)</a>

  :markdown
    A collection of the Angular core directives that are likely to be used in each and every Angular
    application.
    
    This collection can be used to quickly enumerate all the built-in directives in the `@View`
    annotation. For example,
    instead of writing:
    
    ```
    import {If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/angular2';
    import {OtherDirective} from 'myDirectives';
    
    @Component({
     selector: 'my-component'
    })
    @View({
      templateUrl: 'myComponent.html',
      directives: [If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, OtherDirective]
    })
    export class MyComponent {
      ...
    }
    ```
    one could enumerate all the core directives at once:
    
    ```
    import {coreDirectives} from 'angular2/angular2';
    import {OtherDirective} from 'myDirectives';
    
    @Component({
     selector: 'my-component'
    })
    @View({
      templateUrl: 'myComponent.html',
      directives: [coreDirectives, OtherDirective]
    })
    export class MyComponent {
      ...
    }
    ```
    
    

