| 
									
										
										
										
											2016-09-09 16:54:26 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							| 
									
										
										
										
											2020-05-19 12:08:49 -07:00
										 |  |  |  * Copyright Google LLC All Rights Reserved. | 
					
						
							| 
									
										
										
										
											2016-09-09 16:54:26 -07:00
										 |  |  |  * | 
					
						
							|  |  |  |  * Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  |  * found in the LICENSE file at https://angular.io/license
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import {APP_BASE_HREF} from '@angular/common'; | 
					
						
							|  |  |  | import {Component, NgModule} from '@angular/core'; | 
					
						
							|  |  |  | import {BrowserModule} from '@angular/platform-browser'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import {HashLocationComponent} from './hash_location_component'; | 
					
						
							|  |  |  | import {PathLocationComponent} from './path_location_component'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							|  |  |  |   selector: 'example-app', | 
					
						
							|  |  |  |   template: `<hash-location></hash-location><path-location></path-location>` | 
					
						
							|  |  |  | }) | 
					
						
							| 
									
										
										
										
											2019-01-28 21:59:25 +01:00
										 |  |  | export class AppComponent { | 
					
						
							| 
									
										
										
										
											2016-09-09 16:54:26 -07:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @NgModule({ | 
					
						
							| 
									
										
										
										
											2019-01-28 21:59:25 +01:00
										 |  |  |   declarations: [AppComponent, PathLocationComponent, HashLocationComponent], | 
					
						
							| 
									
										
										
										
											2016-09-09 16:54:26 -07:00
										 |  |  |   providers: [{provide: APP_BASE_HREF, useValue: '/'}], | 
					
						
							|  |  |  |   imports: [BrowserModule], | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | export class AppModule { | 
					
						
							|  |  |  | } |