Do I have multiple instances of an exported constant or one when imported multiple times?

Viewed 204

I'm using the angular webpack starter: https://github.com/AngularClass/angular-starter

and had noticed that in the angular docs, they are exporting an animation as a const. If import the animation in two components and use it, do I have two instances or one in the global scope?

import { animation } from /file

How do the imports work?

1 Answers
Related