| 
									
										
										
										
											2015-04-10 12:45:02 +02:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @module | 
					
						
							|  |  |  |  * @public | 
					
						
							|  |  |  |  * @description | 
					
						
							| 
									
										
										
										
											2015-04-24 14:21:39 +02:00
										 |  |  |  * Common directives shipped with Angular. | 
					
						
							| 
									
										
										
										
											2015-04-10 12:45:02 +02:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-04-24 14:21:39 +02:00
										 |  |  | import {CONST_EXPR} from './src/facade/lang'; | 
					
						
							| 
									
										
										
										
											2015-05-11 17:04:55 -07:00
										 |  |  | import {NgFor} from './src/directives/ng_for'; | 
					
						
							| 
									
										
										
										
											2015-05-11 15:58:59 -07:00
										 |  |  | import {NgIf} from './src/directives/ng_if'; | 
					
						
							| 
									
										
										
										
											2015-05-11 16:00:53 -07:00
										 |  |  | import {NgNonBindable} from './src/directives/ng_non_bindable'; | 
					
						
							| 
									
										
										
										
											2015-05-11 16:07:23 -07:00
										 |  |  | import {NgSwitch, NgSwitchWhen, NgSwitchDefault} from './src/directives/ng_switch'; | 
					
						
							| 
									
										
										
										
											2015-04-24 14:21:39 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-04-10 16:38:18 +02:00
										 |  |  | export * from './src/directives/class'; | 
					
						
							| 
									
										
										
										
											2015-05-11 17:04:55 -07:00
										 |  |  | export * from './src/directives/ng_for'; | 
					
						
							| 
									
										
										
										
											2015-05-11 15:58:59 -07:00
										 |  |  | export * from './src/directives/ng_if'; | 
					
						
							| 
									
										
										
										
											2015-05-11 16:00:53 -07:00
										 |  |  | export * from './src/directives/ng_non_bindable'; | 
					
						
							| 
									
										
										
										
											2015-05-11 16:07:23 -07:00
										 |  |  | export * from './src/directives/ng_switch'; | 
					
						
							| 
									
										
										
										
											2015-04-24 14:21:39 +02: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 17:04:55 -07:00
										 |  |  |  * import {If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/angular2'; | 
					
						
							| 
									
										
										
										
											2015-04-24 14:21:39 +02:00
										 |  |  |  * import {OtherDirective} from 'myDirectives'; | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * @Component({ | 
					
						
							|  |  |  |  *  selector: 'my-component' | 
					
						
							|  |  |  |  * }) | 
					
						
							|  |  |  |  * @View({ | 
					
						
							|  |  |  |  *   templateUrl: 'myComponent.html', | 
					
						
							| 
									
										
										
										
											2015-05-11 17:04:55 -07:00
										 |  |  |  *   directives: [If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, OtherDirective] | 
					
						
							| 
									
										
										
										
											2015-04-24 14:21:39 +02:00
										 |  |  |  * }) | 
					
						
							|  |  |  |  * export class MyComponent { | 
					
						
							|  |  |  |  *   ... | 
					
						
							|  |  |  |  * } | 
					
						
							|  |  |  |  * ```
 | 
					
						
							|  |  |  |  * one could enumerate all the core directives at once: | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2015-05-15 13:54:41 +01:00
										 |  |  |  * ```
 | 
					
						
							| 
									
										
										
										
											2015-04-24 14:21:39 +02:00
										 |  |  |  * 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 17:04:55 -07:00
										 |  |  |   NgFor, NgIf, NgNonBindable, NgSwitch, NgSwitchWhen, NgSwitchDefault | 
					
						
							| 
									
										
										
										
											2015-04-24 14:21:39 +02:00
										 |  |  | ]); |