feat(aio): add <current-location> embedded component (#16139)

This commit is contained in:
Peter Bacon Darwin
2017-04-20 14:45:56 +01:00
committed by Miško Hevery
parent 5e6a3ff6a7
commit db4e9ea04a
4 changed files with 48 additions and 2 deletions

View 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) {
}
}