chrisdavies / eev

A tiny, fast, zero-dependency event emitter
522 stars 32 forks source link

How to import this with angular 4 app #9

Closed debayanMuvi closed 6 years ago

debayanMuvi commented 6 years ago

Hi,

I am trying to make two Angular apps and i want an event emitter to listen events commonly in between two different application just like micro frontend but i am unable to import this in angular 4 . Can please give some instruction to integrate this.

chrisdavies commented 6 years ago

I'm not super familiar with Angular, but it's just JavaScript / TypeScript, so you should be able to import this library using an import statement:

import Eev from "eev;

Or you might have to do this:

import * as Eev from "eev";

I've had to do the latter in TypeScript when importing other libraries. (I've never tried importing Eev via TypeScript, though.)