Skip to content

Instantly share code, notes, and snippets.

@dherges
Created October 11, 2017 18:23
Show Gist options
  • Save dherges/3c4e2ea3ca53433d1389a0aeb717c7e0 to your computer and use it in GitHub Desktop.
Save dherges/3c4e2ea3ca53433d1389a0aeb717c7e0 to your computer and use it in GitHub Desktop.
Angular: Componentful Functions (componify)
import { Component, Type } from '@angular/core';
const compσηιψ = (μ: Component, λ: Function): Type<any> =>
Component(μ).Class(Object.assign({ constructor: λ, λ }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment