Upgrade to Pro — share decks privately, control downloads, hide ads and more …

I bet my mirror is smarter than yours

I bet my mirror is smarter than yours

Luca Simone

August 16, 2017
Tweet

More Decks by Luca Simone

Other Decks in Programming

Transcript

  1. Hi! Passionate developer, Web technology lover, AI enabler, Machine learning

    group @ Swisscom, Chef wannabe. from Lugano Living in Zürich I’m Luca Simone @lukefx
  2. Aurelia is a JavaScript client framework for mobile, desktop and

    web leveraging simple conventions and empowering creativity
  3. • Clean and Unobtrusive • Convention over Configuration • Simple,

    But Not Simplistic • Amazingly Extensible • Web Standards Focused • Integrates Well with Others • TypeScript Support
  4. import './clock.scss'; import { inlineView } from 'aurelia-framework'; import moment

    from 'moment'; @inlineView(` <template> <div class="clock-component clock-component__wrapper"> <div class="clock-component__time"> <span>\${time}</span> </div> <div class="clock-component__date"> <span>\${date}</span> </div> </template> `) export class ClockCustomElement { private time: string; private date: string; public attached(): void { setInterval(() => { this.time = moment().format('HH:mm'); this.date = moment().format('dddd, D MMMM gggg'); }); } }