2015-11-05 12:33:56 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
								
									
								 
							
							
								@cheatsheetSection  
						 
					
						
							
								
									
										
										
										
											2015-11-06 12:26:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
								
									
								 
							
							
								Bootstrapping
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
								
									
								 
							
							
								@cheatsheetIndex  0 
						 
					
						
							
								
									
										
										
										
											2015-11-05 12:33:56 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
								
									
								 
							
							
								@description  
						 
					
						
							
								
									
										
										
										
											2016-06-26 16:31:35 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
								
									
								 
							
							
								{@target  ts}`import { bootstrap } from '@angular/platform-browser-dynamic';` {@endtarget }
							 
						 
					
						
							
								
									
										
										
										
											2015-12-15 17:36:40 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
								
									
								 
							
							
								{@target  js}Available from the `ng.platform.browser`  namespace{@endtarget }
							 
						 
					
						
							
								
									
										
										
										
											2016-03-17 12:49:46 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
								
									
								 
							
							
								{@target  dart}`import 'package:angular2/platform/browser.dart';` {@endtarget }
							 
						 
					
						
							
								
									
										
										
										
											2015-11-05 12:33:56 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
								
									
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
								
									
								 
							
							
								@cheatsheetItem  
						 
					
						
							
								
									
										
										
										
											2015-12-12 21:17:26 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
								
									
								 
							
							
								syntax(ts dart):
							 
						 
					
						
							
								
									
										
										
										
											2016-06-16 00:11:39 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
								
									
										 
							
							
								`bootstrap    |`provide`  
						 
					
						
							
								
									
										
										
										
											2015-12-12 21:17:26 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
								
									
								 
							
							
								syntax(js):
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
								
									
								 
							
							
								`document.addEventListener('DOMContentLoaded', function () {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
								
									
								 
							
							
								  ng.platform.browser.bootstrap(MyAppComponent,
							 
						 
					
						
							
								
									
										
										
										
											2016-06-16 00:11:39 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
								
									
										 
							
							
								    [MyService, {  
							 
						 
					
						
							
								
									
										
										
										
											2015-12-12 21:17:26 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
								
									
								 
							
							
								});`|` provide`
							 
						 
					
						
							
								
									
										
										
										
											2015-12-09 12:33:42 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
								
									
								 
							
							
								description:
							 
						 
					
						
							
								
									
										
										
										
											2015-12-12 21:17:26 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
								
									
								 
							
							
								Bootstraps an application with MyAppComponent as the root component and configures the DI providers. {@target  js}Must be wrapped in the event listener to fire when the page loads.{@endtarget }