Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. const services = []
  2. const serviceList = ["serviceA", "serviceB", "serviceD"];
  3. serviceList.map((s)=>{
  4. System.import("./services/" + s)
  5. .then((mod)=>{
  6. services.push(mod);
  7. })
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement