Skip to content

Instantly share code, notes, and snippets.

View pahlers's full-sized avatar

Peter Ahlers pahlers

  • Flusso
  • The Netherlands
View GitHub Profile
import { HostListener } from '@angular/core';
import { Subject, UnaryFunction, Observable } from 'rxjs';
export function ObservableHostListener<T, R = never>(
eventName: string,
args?: string[],
operator?: UnaryFunction<Observable<T>, Observable<R>>
): PropertyDecorator {
// Calling HostListener will return a decorator, ready to
@pahlers
pahlers / test-13.html
Created July 18, 2011 14:08 — forked from pmuellr/test-13.html
test for weinre bug 13
<!DOCTYPE html>
<html>
<head>
<title>test for weinre bug 13</title>
<style>
.block{ /* this one is visible in the Styles side panel */
background-color: #f00;
color: #fff;
padding: 3em;
}