npm

Need private packages and team management tools?Check out npm Orgs. »

ng2-stomp

1.0.6 • Public • Published

ng2-stomp

Steps to use:

1.  npm install sockjs-client --save
    npm install stompjs --save
    npm install ng2-stomp --save

step 1 will list all the peer dependencies need(will be fixed in later version)

2. npm install "above-listed-dependencies" to your angular project
3. include "node_modules/sockjs-client/dist/sockjs.min.js" 
    and "node_modules/stompjs/lib/stomp.min.js" to index.html
    or to angualar-cli.json file if you are using angular-cli

In app.module.ts

4. import {Ng2StompModule} from 'ng2-stomp';
    include to your module's imports Ng2StompModule.forRoot()

install

npm i ng2-stomp

Downloadsweekly downloads

64

version

1.0.6

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability