×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Jul 2, 2017 7:35 PM
Views: 3
Tags: no tags
  1. export default class Message {
  2.         show() {
  3.            alert('hello world');
  4.         }
  5. }
  6.  
  7. how to import it into app.ts
  8.  
  9. import msg from './Message'
  10.  
  11. window.onload = function() {
  12.         var o = new msg();
  13.         o.show();
  14. }
  15.