Add a <time-display> component for better display of time
This commit is contained in:
parent
2ea06d3df8
commit
7d55ff9c67
3 changed files with 15 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
<span>{{ ::$ctrl.datetime | amDateFormat:'dddd, MMMM Do YYYY, h:mm A' }}</span>
|
|
@ -0,0 +1,12 @@
|
|||
import { Input, Component } from 'ng-metadata/core';
|
||||
|
||||
/**
|
||||
* A component that displays when an event occurred.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'timeDisplay',
|
||||
templateUrl: '/static/js/directives/ui/time-display/time-display.component.html'
|
||||
})
|
||||
export class TimeDisplayComponent {
|
||||
@Input('<') public datetime: any;
|
||||
}
|
Reference in a new issue