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';
|
2015-05-11 20:04:55 -04:00
|
|
|
import {NgFor} from './src/directives/ng_for';
|
2015-05-11 18:58:59 -04:00
|
|
|
import {NgIf} from './src/directives/ng_if';
|
2015-05-11 19:00:53 -04:00
|
|
|
import {NgNonBindable} from './src/directives/ng_non_bindable';
|
2015-05-11 19:07:23 -04:00
|
|
|
import {NgSwitch, NgSwitchWhen, NgSwitchDefault} from './src/directives/ng_switch';
|
2015-04-24 08:21:39 -04:00
|
|
|
|
2015-04-10 10:38:18 -04:00
|
|
|
export * from './src/directives/class';
|
2015-05-11 20:04:55 -04:00
|
|
|
export * from './src/directives/ng_for';
|
2015-05-11 18:58:59 -04:00
|
|
|
export * from './src/directives/ng_if';
|
2015-05-11 19:00:53 -04:00
|
|
|
export * from './src/directives/ng_non_bindable';
|
2015-05-11 19:07:23 -04:00
|
|
|
export * from './src/directives/ng_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:
|
|
|
|
*
|
|
|
|
* ```
|
2015-05-11 20:04:55 -04:00
|
|
|
* import {If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/angular2';
|
2015-04-24 08:21:39 -04:00
|
|
|
* import {OtherDirective} from 'myDirectives';
|
|
|
|
*
|
|
|
|
* @Component({
|
|
|
|
* selector: 'my-component'
|
|
|
|
* })
|
|
|
|
* @View({
|
|
|
|
* templateUrl: 'myComponent.html',
|
2015-05-11 20:04:55 -04:00
|
|
|
* directives: [If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, OtherDirective]
|
2015-04-24 08:21:39 -04:00
|
|
|
* })
|
|
|
|
* 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([
|
2015-05-11 20:04:55 -04:00
|
|
|
NgFor, NgIf, NgNonBindable, NgSwitch, NgSwitchWhen, NgSwitchDefault
|
2015-04-24 08:21:39 -04:00
|
|
|
]);
|