UNPKG

glimmer-router

Version:

Proof of concept routing in glimmer.js

8 lines (6 loc) 198 B
export default function getRouter(context) { if (!context || !context.__owner__) { throw new Error('Could not find the router on the given context'); } return context.__owner__.router; }