Skip to content

Instantly share code, notes, and snippets.

@blittle
Created December 3, 2016 21:58
Show Gist options
  • Save blittle/fb784992748f7d285f35bd26baa8a308 to your computer and use it in GitHub Desktop.
Save blittle/fb784992748f7d285f35bd26baa8a308 to your computer and use it in GitHub Desktop.
// Static imports
import auth from 'auth-service!sofe';
const user = auth.getLoggedInUser();
// Asynchronous imports
System.import('auth-service!sofe')
.then(auth => auth.getLoggedInUser());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment