How to import and use pubnub in angular2

How to import and use pubnub in angular2  #angularjs #reactjs

  • /user-add/user-add.component’; import { NavService } from “./nav/nav.service”; import { PartnerService } from “./shared/partner.service”; import { ClientService } from “./shared/client.service”; import { PartnerComponent } from ‘.
  • /delivery/delivery-detail/delivery-detail.component’; import {FileUploadService} from “./shared/file-upload.service”; import { PartnerEditComponent } from ‘.
  • I guess I fellow pubnub guide, but it doesn’t work at all, besides it makes an error that ‘window’ isn’t defined.
  • While the link may answer the question, it is better to include the essential parts of the answer and provide the link for reference.
  • If you know how to import and use pubnub in angular2, please give little advice.

I added and imported pubnub module in angular.module.
I guess I fellow pubnub guide, but it doesn’t work at all, besides it makes an error that ‘window’ isn’t defined.

@ng_real_ninja: How to import and use pubnub in angular2 #angularjs #reactjs

I’m trying to use pubnub in my angular2 project. (it’s for realtime to get an order on browser)

{ “name”: “test”, “version”: “0.0.0”, “license”: “MIT”, “angular-cli”: {}, “scripts”: { “start”: “ng serve”, “lint”: “tslint \”src/**/*.ts\””, “test”: “ng test”, “pree2e”: “webdriver-manager update”, “e2e”: “protractor” }, “private”: true, “dependencies”: { “@angular/common”: “~2.0.0”, “@angular/compiler”: “~2.0.0”, “@angular/core”: “~2.0.0”, “@angular/forms”: “~2.0.0”, “@angular/http”: “~2.0.0”, “@angular/material”: “^2.0.0-beta.0”, “@angular/platform-browser”: “~2.0.0”, “@angular/platform-browser-dynamic”: “~2.0.0”, “@angular/router”: “~3.0.0”, “@types/moment-timezone”: “^0.2.33”, “angular-cli”: “^1.0.0-beta.17”, “angular2-jwt”: “^0.1.25”, “bootstrap”: “^3.3.7”, “bourbon”: “^4.2.7”, “core-js”: “^2.4.1”, “es6-promise”: “^4.0.5”, “font-awesome”: “^4.7.0”, “hammerjs”: “^2.0.8”, “moment”: “^2.17.1”, “moment-timezone”: “^0.5.10”, “node-sass”: “^3.13.0”, “primeng”: “^1.1.0”, “pubnub-angular2”: “^1.0.0-beta.6”, “rxjs”: “5.0.0-beta.12”, “ts-helpers”: “^1.1.1”, “zone.js”: “^0.6.23” }, “devDependencies”: { “@types/hammerjs”: “^2.0.33”, “@types/jasmine”: “^2.2.30”, “@types/moment”: “^2.13.0”, “@types/moment-timezone”: “^0.2.33”, “@types/node”: “^6.0.42”, “angular-cli”: “1.0.0-beta.17”, “bootstrap-sass”: “^3.3.7”, “codelyzer”: “~0.0.26”, “jasmine-core”: “2.4.1”, “jasmine-spec-reporter”: “2.5.0”, “karma”: “1.2.0”, “karma-chrome-launcher”: “^2.0.0”, “karma-cli”: “^1.0.1”, “karma-jasmine”: “^1.0.2”, “karma-remap-istanbul”: “^0.2.1”, “protractor”: “4.0.9”, “ts-node”: “1.2.1”, “tslint”: “3.13.0”, “typescript”: “2.0.2” } }

If you know how to import and use pubnub in angular2, please give little advice.

While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – From Review – Fabian Schultz 51 mins ago

How to import and use pubnub in angular2

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.