| 
									
										
										
										
											2016-05-02 16:53:25 -07:00
										 |  |  | /* Second version */ | 
					
						
							|  |  |  | // For Milestone #2
 | 
					
						
							|  |  |  | // Also includes digression on HashPathStrategy (not used in the final app)
 | 
					
						
							|  |  |  | // #docplaster
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // #docregion
 | 
					
						
							| 
									
										
										
										
											2016-05-05 12:59:18 +02:00
										 |  |  | import { bootstrap }         from '@angular/platform-browser-dynamic'; | 
					
						
							|  |  |  | import { ROUTER_PROVIDERS }  from '@angular/router-deprecated'; | 
					
						
							| 
									
										
										
										
											2016-05-02 16:53:25 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Add these symbols to override the `LocationStrategy`
 | 
					
						
							| 
									
										
										
										
											2016-05-05 12:59:18 +02:00
										 |  |  | import { provide }           from '@angular/core'; | 
					
						
							|  |  |  | import { LocationStrategy, | 
					
						
							|  |  |  |         HashLocationStrategy } from '@angular/common'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import { AppComponent }      from './app.component'; | 
					
						
							| 
									
										
										
										
											2016-05-02 16:53:25 -07:00
										 |  |  | // #enddocregion
 | 
					
						
							|  |  |  | /* Can't use AppComponent ... but display as if we can | 
					
						
							|  |  |  | // #docregion
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | bootstrap(AppComponent, [ | 
					
						
							|  |  |  | // #enddocregion
 | 
					
						
							|  |  |  | */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Actually use the v.2 component
 | 
					
						
							| 
									
										
										
										
											2016-05-05 12:59:18 +02:00
										 |  |  | import { AppComponent as ac } from './app.component.2'; | 
					
						
							| 
									
										
										
										
											2016-05-02 16:53:25 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | bootstrap(ac, [ | 
					
						
							|  |  |  | // #docregion
 | 
					
						
							|  |  |  |   ROUTER_PROVIDERS, | 
					
						
							|  |  |  |   provide(LocationStrategy, | 
					
						
							|  |  |  |          {useClass: HashLocationStrategy}) // .../#/crisis-center/
 | 
					
						
							|  |  |  | ]); | 
					
						
							|  |  |  | // #enddocregion
 |