WIP
This commit is contained in:
		
							parent
							
								
									9f1db3f2bc
								
							
						
					
					
						commit
						6e4477fc08
					
				
							
								
								
									
										16
									
								
								modules/core/src/compiler/compiler.es6d
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								modules/core/src/compiler/compiler.es6d
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | |||||||
|  | import {Future} from '../facade'; | ||||||
|  | import {ProtoView} from './proto_view'; | ||||||
|  | 
 | ||||||
|  | export class Compiler { | ||||||
|  |   /** | ||||||
|  |    * # Why future? | ||||||
|  |    *   - compilation will load templates. Instantiating views before templates are loaded will  | ||||||
|  |    *     complicate the Directive code. BENEFIT: view instantiation become synchrnous. | ||||||
|  |    * # Why result that is independent of injector? | ||||||
|  |    *   - don't know about injector in deserialization | ||||||
|  |    *   - compile does not need the injector, only the ViewFactory does | ||||||
|  |    */ | ||||||
|  |   @of(ProtoView) Future compile(TemplateElement element) { | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  | } | ||||||
							
								
								
									
										0
									
								
								modules/core/src/compiler/proto_view.es6d
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								modules/core/src/compiler/proto_view.es6d
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								modules/core/src/facade.dart
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								modules/core/src/facade.dart
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								modules/core/src/facade.es6
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								modules/core/src/facade.es6
									
									
									
									
									
										Normal file
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user