2015-04-10 06:45:02 -04:00
|
|
|
/**
|
|
|
|
* @module
|
|
|
|
* @public
|
|
|
|
* @description
|
2015-04-24 08:21:39 -04:00
|
|
|
* Common directives shipped with Angular.
|
2015-04-10 06:45:02 -04:00
|
|
|
*/
|
|
|
|
|
2015-04-24 08:21:39 -04:00
|
|
|
import {CONST_EXPR} from './src/facade/lang';
|
|
|
|
import {For} from './src/directives/for';
|
|
|
|
import {If} from './src/directives/if';
|
|
|
|
import {NonBindable} from './src/directives/non_bindable';
|
|
|
|
import {Switch, SwitchWhen, SwitchDefault} from './src/directives/switch';
|
|
|
|
|
2015-04-10 10:38:18 -04:00
|
|
|
export * from './src/directives/class';
|
2015-03-13 19:22:01 -04:00
|
|
|
export * from './src/directives/for';
|
2015-02-04 16:27:31 -05:00
|
|
|
export * from './src/directives/if';
|
|
|
|
export * from './src/directives/non_bindable';
|
|
|
|
export * from './src/directives/switch';
|
2015-04-24 08:21:39 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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, For, Switch, SwitchWhen, SwitchDefault} from 'angular2/angular2';
|
|
|
|
* import {OtherDirective} from 'myDirectives';
|
|
|
|
*
|
|
|
|
* @Component({
|
|
|
|
* selector: 'my-component'
|
|
|
|
* })
|
|
|
|
* @View({
|
|
|
|
* templateUrl: 'myComponent.html',
|
|
|
|
* directives: [If, For, Switch, SwitchWhen, SwitchDefault, 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 {
|
|
|
|
* ...
|
|
|
|
* }
|
|
|
|
* ```
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
export const coreDirectives:List = CONST_EXPR([
|
|
|
|
For, If, NonBindable, Switch, SwitchWhen, SwitchDefault
|
|
|
|
]);
|