Skip to content

Instantly share code, notes, and snippets.

View zookatron's full-sized avatar

Tim Zook zookatron

View GitHub Profile
@zookatron
zookatron / ReactiveInput.ts
Created August 16, 2017 21:00
Angular Input decorator that produces an Observable
import { Input } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
/*
* Declares a reactively data-bound input property.
*
* Angular automatically updates data-bound properties during change detection.
*
* `Input` takes an optional parameter that specifies the name
* used when instantiating a component in the template. When not provided,

Keybase proof

I hereby claim:

  • I am zookatron on github.
  • I am zookatron (https://keybase.io/zookatron) on keybase.
  • I have a public key whose fingerprint is 4426 CD7C B2BA 9A56 A9DF D530 7A06 0330 4D9D 6F74

To claim this, I am signing this object: