Created
January 19, 2021 14:58
-
-
Save luismisanchez/028fed40cd407df6e46b6d406657ce71 to your computer and use it in GitHub Desktop.
Typescript Modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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