File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,15 @@ npm install angular-chat
1919bower install angular-chat
2020```
2121
22+ ## PubNub API Keys
23+
24+ > [ Get PubNub API Keys] ( https://www.pubnub.com/get-started/?medium=sbng2016&source=sbng2016&campaign=sbng2016&keyword=sbangularjs&content=sbng2016 )
25+ You need ** PubNub API Keys** .
26+ This allows the chat communication on a data stream network.
27+ You can fill in the ` YOUR-PUBLISH-KEY `
28+ and ` YOUR-SUBSCRIBE-KEY ` placeholder strings with your
29+ API keys that you get on the PubNub website.
30+
2231## Basic Chat Demo
2332
2433``` html
@@ -27,7 +36,19 @@ bower install angular-chat
2736<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -->
2837<script src =" bower_components/angular/angular.js" ></script >
2938<script src =" bower_components/angular-chat/angular-chat.js" ></script >
30- <script src =" bower_components/angular-chat/angular-chat-config.js" ></script >
39+
40+ <!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -->
41+ <!-- configuration -->
42+ <!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -->
43+ angular.module('chat').constant( 'config', {
44+ //
45+ // Get your PubNub API Keys in the link above.
46+ //
47+ "pubnub": {
48+ "publish-key" : "YOUR-PUBLISH-KEY",
49+ "subscribe-key" : "YOUR-SUBSCRIBE-KEY"
50+ }
51+ } );
3152
3253<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -->
3354<!-- controller -->
Original file line number Diff line number Diff line change 55// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
66angular . module ( 'chat' ) . constant ( 'config' , {
77 //
8- // Get your API Keys -> https://admin .pubnub.com/#/register
8+ // Get your API Keys -> https://www .pubnub.com/get-started/?medium=sbng2016&source=sbng2016&campaign=sbng2016&keyword=sbangularjs&content=sbng2016
99 //
1010 "pubnub" : {
11- "publish-key" : "demo " ,
12- "subscribe-key" : "demo "
11+ "publish-key" : "__YOUR_PUBLISH_KEY__ " ,
12+ "subscribe-key" : "__YOUR_SUBSCRIBE_KEY__ "
1313 }
1414} ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " angular-chat" ,
3- "version" : " 1.0.5 " ,
3+ "version" : " 1.0.6 " ,
44 "description" : " AngularJS Chat - Enable chat messaging experiences in your iOS, Android and Web apps." ,
55 "main" : " angular-chat.js" ,
66 "authors" : [
Original file line number Diff line number Diff line change 11{
22 "name" : " angular-chat" ,
3- "version" : " 1.0.5 " ,
3+ "version" : " 1.0.6 " ,
44 "description" : " AngularJS Chat - Enable chat messaging experiences in your iOS, Android and Web apps." ,
55 "main" : " angular-chat.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments