Skip to content

Instantly share code, notes, and snippets.

@Celebes
Celebes / genesis_public_key
Last active February 8, 2018 10:40
genesis_public_key
04f74f5387c59acc60b07c6945520125f3a4d5220e5ff71b79f312d606be54716577ac5e5b544c209f8cdc63447bc23d8113ba99f63f12fbd5daa4f045746ebf5f yddmat
@Celebes
Celebes / app.component.ts
Last active April 27, 2016 08:39
Angular2 + Typescript. Creates a master checkbox and 3 slave checkboxes. Changing value of master checkbox updates all slave checkboxes. Istead of table indexes you could use object ids. Useful for example in a table, where you can select specific rows with checkboxes or select all rows with a checkbox placed in a table header.
import {Component} from 'angular2/core';
@Component({
selector: 'my-app',
directives: [],
template: `
<div id="wrapper">
<h1>SELECTED SLAVES:<br/>{{selectedSlaves | json}}</h1>
<div class="checkbox">
<label>