Skip to content

Instantly share code, notes, and snippets.

@hal0gen
Last active March 12, 2017 02:01
Show Gist options
  • Save hal0gen/deaa74e910930f4e84d3c999918ee54b to your computer and use it in GitHub Desktop.
Save hal0gen/deaa74e910930f4e84d3c999918ee54b to your computer and use it in GitHub Desktop.
Vue mixin for including Foundation JavaScript
module.exports = {
mounted() {
// eslint-disable-next-line
$(this.$el).foundation();
},
destroyed() {
// eslint-disable-next-line
$(this.$el).foundation.destroy();
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment