- Run
meteor create chat
- Run
meteor add angular driftyco:ionic
- Add
index.html
- Add
app.js
- Run
meteor add fourseven:scss
- Add chat template and CtrlController
- Add 'angular-meteor' as angular module
- Add
Messages = new Meteor.Collection('messages');
- Assign angular meteor collection to $scope
$scope.messages = $scope.$meteorCollection(Messages);
- Run
meteor add accounts-password accounts-ui urigo:angular-blaze-template
- Add to
index.html
-<blaze-template name="loginButtons"></blaze-template>
- Add to message wrapper div (
.message-list
)ng-if="$root.currentUser
- Add
currentUser._id
to message
- Run
meteor remove insecure autopublish
- Add
sendMessage
method - Add pubish and subscribe