i am not familiar with angular 2 and typescript. i was reading a article on web pack from this link http://www.dotnetfunda.com/articles/show/3481/webpack-in-angular2
the article shown how to create 3 different typescript files for customer, address and phone no and there they show some coding part like
- import {Address} from "./Address"
-
- class Customer{
- a: Address = new Address();
- Addresses: Array
- = new Array
- ();
- }
-
- import {Phone} from "./Phone"
-
- export class Address{
- b: Phone = new Phone();
- Phones: Array = new Array();
- }
-
- export class Phone{
-
- }
just see first Customer class has no export but next two class has export keyword. why
please tell me when to use export keyword and when to use import keyword with a easy example.