Last active
February 27, 2020 05:54
-
-
Save LeCoupa/9878915 to your computer and use it in GitHub Desktop.
Sign out system with Meteor --> https://github.com/LeCoupa/awesome-cheatsheets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="SignOut"> | |
<div class="connected"> | |
<span class="welcome">Welcome New Meteorite!</span> | |
<a class="sign-out" href="/" id="signOut">Sign Out</a> | |
</div> | |
<!-- end .connected --> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Template.SignOut.events({ | |
'click #signOut': function(e, t) { | |
Meteor.logout(function() { | |
console.log('Bye Meteorite! Come back whenever you want!'); | |
}); | |
return false; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment