Created
July 12, 2018 04:13
-
-
Save ljayz/f56e8f0020e9d5f543f4486ea9cf9361 to your computer and use it in GitHub Desktop.
loading meteor npm package with plugins (moment and moment-timer)
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
//client/main.js | |
import moment from 'moment'; | |
import 'moment-timer'; | |
Template.body.onRendered(function(){ | |
new moment.duration(1000).timer({ start: true, loop: true }, () => { | |
console.log('moment timer run'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment