Sakib Sami' Blog

Newbie programmer, Java fan, Rosogolla lover, Mom's little kid.

Tag: angular

  1. Angular2 with MQTT

    In package.json add, "ng2-mqtt": "^0.1.2" npm install it will install dependencies. Now in your component or class import, import {Paho} from 'ng2-mqtt/mqttws31'; Now do whatever you want to do. Like, import {Paho} from 'ng2-mqtt/mqttws31'; expo…

    angular2, angular, mqttRead

  2. Angular2 async http request

    Imagine your are developing a real time data processing app where you have to do chained http request in 5 seconds of interval. How you can do that ? Simple, use rxjs Observable to handle 5sec delayed event and on the event do http request. import {…

    angular2, http_request, angular, rxjs, asyncRead