feat(aio): add <current-location>
embedded component (#16139)
This commit is contained in:

committed by
Miško Hevery

parent
5e6a3ff6a7
commit
db4e9ea04a
15
aio/src/app/embedded/current-location.component.ts
Normal file
15
aio/src/app/embedded/current-location.component.ts
Normal file
@ -0,0 +1,15 @@
|
||||
/* tslint:disable component-selector */
|
||||
import { Component } from '@angular/core';
|
||||
import { LocationService } from 'app/shared/location.service';
|
||||
|
||||
/**
|
||||
* A simple embedded component that displays the current location path
|
||||
*/
|
||||
@Component({
|
||||
selector: 'current-location',
|
||||
template: '{{location.path()}}'
|
||||
})
|
||||
export class CurrentLocationComponent {
|
||||
constructor(public location: LocationService) {
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user