icanos / ng2-mqtt

Angular2 port of the mqttws31 library
17 stars 24 forks source link

README should address import ... from "ng2-mqtt" when use angular cli #12

Closed systembugtj closed 5 years ago

systembugtj commented 7 years ago

When use with angular cli, import like below

import {Paho} from "ng2-mqtt";

bdwellons commented 7 years ago

I had to import it slightly different to get past a typings issue: import { Paho } from 'ng2-mqtt/mqttws31';