Skip to content

Instantly share code, notes, and snippets.

View aicokleinovink's full-sized avatar

Aico Klein Ovink aicokleinovink

  • Deventer, Netherlands
View GitHub Profile
@aicokleinovink
aicokleinovink / mf-locale-date-formatter.ts
Last active July 6, 2018 10:55
Aurelia: locale date formatter value converter
import { autoinject, LogManager } from 'aurelia-framework';
import { I18N } from 'aurelia-i18n';
import { MfCommonHelper } from 'weblibrary/helpers/mf-common-helper';
import { MfDateHelper } from 'weblibrary/helpers/mf-date-helper';
import { mfLocaleDateFormatterLoggerId, mfLocaleDateFormatterLoggerMessages } from './constants';
/**
* Moba Frontend Library - MfLocaleDateFormatterValueConverter class. Custom Aurelia value converter. Formats a date to
* locale date format. By default dates like today, yesterday, current week and current year will format differently:
@aicokleinovink
aicokleinovink / side-panel-multiple-view-models.html
Created June 17, 2018 20:23
Aurelia: composing multiple view models in a side panel
<template>
<div class="side-panel">
<div class="side-panel__header">
<!-- this will pop the last view model from stack -->
<a click.delegate="pop()">Back</a>
Side Panel
<!-- this will close the side panel -->