Created
May 23, 2020 19:28
-
-
Save anish2690/47f6fc849eed256c225d5f15aaa6cf37 to your computer and use it in GitHub Desktop.
We would normally set an object property like this:
This file contains hidden or 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
import moment from 'moment'; | |
Object.defineProperty(Vue.prototype, '$moment', { value: moment }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment