Skip to content

Instantly share code, notes, and snippets.

View cwayfinder's full-sized avatar

Taras Hupalo cwayfinder

View GitHub Profile

Current approach with ngx-translate

Template:

<p>
  <span class="departure">{{ 'extras.available.LCO.departure' | translate: {time: departureTime} }}</span><br>
  {{ 'extras.available.LCO.proposal' | translate: {time: optionTime} }}<br>
</p>

<p>{{ 'extras.available.LCO.notification' | translate }}</p>

Analytics integration for ngrx/store

Introduction

If you're using ngrx/store to manage your app's state, you can use this to tap into your dispatched actions and map them to events that are consumable by an analytics service (e.g. Google Analytics). With this approach your entire global state life-cycle becomes trackable.

@cwayfinder
cwayfinder / designer.html
Last active August 29, 2015 14:16
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<polymer-element name="my-element">
<template>
<style>
<!DOCTYPE html>
<meta charset="utf-8">
<style>
circle {
opacity: .8;
}
text.label {
font-size: 12px;
text-anchor: middle;
pointer-events: none;