Skip to content

Instantly share code, notes, and snippets.

View rcline's full-sized avatar

Ryan Cline rcline

View GitHub Profile
@rcline
rcline / svelte-shim.js
Last active December 5, 2020 12:22 — forked from dimfeld/svelte-shim.ts
Turn a Svelte component into an AngularJS component
import type { SvelteComponent } from "svelte";
import type { IControllerConstructor, IOnChangesObject } from "angular";
/**
* Turn a Svelte component into an AngularJS component
*
* ## Usage
*
* Create the component boilerplate for use inside AngularJS code:
// app.header.component.ts
import type { IComponentOptions } from 'angular';