Skip to content

Instantly share code, notes, and snippets.

@arackaf
Created February 14, 2017 05:16
Show Gist options
  • Select an option

  • Save arackaf/14893f405ce7405e4e52c2400f8ac6f4 to your computer and use it in GitHub Desktop.

Select an option

Save arackaf/14893f405ce7405e4e52c2400f8ac6f4 to your computer and use it in GitHub Desktop.
let modulePromise = (() => {
switch(module.toLowerCase()){
case 'activate': return (System.import('./modules/activate/activate'));
case 'authenticate': return (System.import('./modules/authenticate/authenticate'));
case 'books': return (System.import('./modules/books/books'));
case 'home': return (System.import('./modules/home/home'));
case 'scan': return (System.import('./modules/scan/scan'));
case 'subjects': return (System.import('./modules/subjects/subjects'));
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment