Importing 'singleton' services

How would one go about importing ‘singleton’ services / objects.

For instance, importing jquery. One would probably want to do that only once. Would this mean importing in the ‘main’ js file and then just using $ everywhere else?

If I had, for example, a SecurityService that I wanted to instantiate only once would I also import, say, and instance from the relevant module and then use the given imported name, like so?:

import securityService from 'src/services/security';

Am I on the right track?>

Every module is a singleton. Every module should import $ if it is using it.

I have read up on the whole dependency / module business. Makes my question seem rather silly :slight_smile:

Anyway, thanks for getting back to me.

I’m doing an online training on it: https://plus.google.com/u/1/b/117481170193954630503/events/c94t89oatm16nkk79o3ent4lfeo