Skip to content

Instantly share code, notes, and snippets.

View teejayhh's full-sized avatar

Thomas Juergens teejayhh

  • Blake Education
  • Sydney
View GitHub Profile
import Component from '@ember/component';
import { computed, set } from '@ember/object';
export default Component.extend({
currentDateInternal: null,
currentTimeInternal: null,
init(...args) {
this._super(...args)
if (!this.currentTime) set(this, 'currentTime', moment().format('hh:mm:ss'))