Skip to content

Instantly share code, notes, and snippets.

@luismisanchez
Created January 19, 2021 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luismisanchez/028fed40cd407df6e46b6d406657ce71 to your computer and use it in GitHub Desktop.
Save luismisanchez/028fed40cd407df6e46b6d406657ce71 to your computer and use it in GitHub Desktop.
Typescript Modules
// TypeScript is modular, we can divide our code up over several files
// In Angular 2 we then use "import {} from ''" to access the code in these files
// We export a class, interface, variable, ... by adding 'export' keyword in front of it
export class ExportedClass {
// This class is exported
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment