Last active
August 25, 2020 21:48
-
-
Save mgechev/9e4fab23d765719a32f28af473cb2a44 to your computer and use it in GitHub Desktop.
Angular CLI strict mode
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
// constants.js | |
export const PI = 3.14159265357989; |
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
// index.js | |
import { add } from './utils'; | |
const subtract = (a, b) => a - b; | |
console.log(add(1, 2)); |
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
// operations.js | |
export const add = (a, b) => a + b; | |
export const subtract = (a, b) => a - b; |
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
// utils.js | |
export * from './operations'; | |
export * from './constants'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment