16 lines
		
	
	
		
			420 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			420 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| 
								 | 
							
								// #docregion
							 | 
						||
| 
								 | 
							
								import 'package:angular2/bootstrap.dart';
							 | 
						||
| 
								 | 
							
								import 'package:hierarchical_di/heroes_service.dart';
							 | 
						||
| 
								 | 
							
								import 'package:hierarchical_di/heroes_list_component.dart';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								void main() {
							 | 
						||
| 
								 | 
							
								  bootstrap(HeroesListComponent, [HeroesService]);
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								/* Documentation artifact below
							 | 
						||
| 
								 | 
							
								// #docregion bad-alternative
							 | 
						||
| 
								 | 
							
								// Don't do this!
							 | 
						||
| 
								 | 
							
								bootstrap(HeroesListComponent, [HeroesService, RestoreService])
							 | 
						||
| 
								 | 
							
								// #enddocregion bad-alternative
							 | 
						||
| 
								 | 
							
								*/
							 |