Skip to content

Instantly share code, notes, and snippets.

@mgechev
Last active August 25, 2020 21:48
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 mgechev/9e4fab23d765719a32f28af473cb2a44 to your computer and use it in GitHub Desktop.
Save mgechev/9e4fab23d765719a32f28af473cb2a44 to your computer and use it in GitHub Desktop.
Angular CLI strict mode
// constants.js
export const PI = 3.14159265357989;
// index.js
import { add } from './utils';
const subtract = (a, b) => a - b;
console.log(add(1, 2));
// operations.js
export const add = (a, b) => a + b;
export const subtract = (a, b) => a - b;
// 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