Advertisement
Guest User

Untitled

a guest
May 25th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. window.shop.init();
  2. window.shop.cart.get();
  3. window.shop.cart.set();
  4. window.shop.cart.clear();
  5.  
  6. // in my cart.js namespace file
  7. export {get} from './get';
  8.  
  9. // in my shop.js
  10. import * as cart from './cart';
  11.  
  12. global.shop = {
  13. cart
  14. }
  15.  
  16. module shop {
  17. export const cart = {...}
  18. }
  19.  
  20. (<any>window).shop = shop;
  21.  
  22. namespace shop {
  23. // ...
  24. }
  25.  
  26. (<any>window).shop = shop;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement