| 
									
										
										
										
											2015-12-10 09:40:54 -08:00
										 |  |  | /* Second version */ | 
					
						
							|  |  |  | // For Milestone #2
 | 
					
						
							|  |  |  | // Also includes digression on HashPathStrategy (not used in the final app)
 | 
					
						
							|  |  |  | // #docplaster
 | 
					
						
							| 
									
										
										
										
											2015-12-31 20:04:22 -08:00
										 |  |  | // #docregion
 | 
					
						
							| 
									
										
										
										
											2016-06-09 13:00:26 -05:00
										 |  |  | // main entry point
 | 
					
						
							| 
									
										
										
										
											2016-05-02 16:53:25 -07:00
										 |  |  | import { bootstrap }            from '@angular/platform-browser-dynamic'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-31 20:04:22 -08:00
										 |  |  | // Add these symbols to override the `LocationStrategy`
 | 
					
						
							| 
									
										
										
										
											2016-05-02 16:53:25 -07:00
										 |  |  | import { LocationStrategy, | 
					
						
							|  |  |  |          HashLocationStrategy } from '@angular/common'; | 
					
						
							| 
									
										
										
										
											2016-05-03 14:06:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | import { AppComponent }         from './app.component'; | 
					
						
							| 
									
										
										
										
											2016-07-07 18:46:35 -07:00
										 |  |  | import { appRouterProviders }   from './app.routes'; | 
					
						
							| 
									
										
										
										
											2016-06-09 13:00:26 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-31 20:04:22 -08:00
										 |  |  | // #enddocregion
 | 
					
						
							| 
									
										
										
										
											2016-06-09 13:00:26 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-10 09:40:54 -08:00
										 |  |  | /* Can't use AppComponent ... but display as if we can | 
					
						
							| 
									
										
										
										
											2015-12-31 20:04:22 -08:00
										 |  |  | // #docregion
 | 
					
						
							| 
									
										
										
										
											2015-12-10 09:40:54 -08:00
										 |  |  | bootstrap(AppComponent, [ | 
					
						
							| 
									
										
										
										
											2015-12-31 20:04:22 -08:00
										 |  |  | // #enddocregion
 | 
					
						
							| 
									
										
										
										
											2015-12-10 09:40:54 -08:00
										 |  |  | */ | 
					
						
							|  |  |  | // Actually use the v.2 component
 | 
					
						
							| 
									
										
										
										
											2016-06-09 13:00:26 -05:00
										 |  |  | import { AppComponent as ac } from './app.component.ts'; // './app.component.2';
 | 
					
						
							| 
									
										
										
										
											2015-12-10 09:40:54 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | bootstrap(ac, [ | 
					
						
							| 
									
										
										
										
											2015-12-31 20:04:22 -08:00
										 |  |  | // #docregion
 | 
					
						
							| 
									
										
										
										
											2016-07-07 18:46:35 -07:00
										 |  |  |   appRouterProviders, | 
					
						
							| 
									
										
										
										
											2016-06-03 18:00:53 +02:00
										 |  |  |   { provide: LocationStrategy, useClass: HashLocationStrategy } // .../#/crisis-center/
 | 
					
						
							| 
									
										
										
										
											2016-06-09 13:00:26 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | ]) | 
					
						
							|  |  |  | .catch(err => console.error(err)); | 
					
						
							| 
									
										
										
										
											2015-12-31 20:04:22 -08:00
										 |  |  | // #enddocregion
 |