Nuxt/test/fixtures/module/modules/basic/reverse.js

15 lines
277 B
JavaScript
Raw Normal View History

2017-05-14 22:33:31 +00:00
// Simple Nuxt Plugin
import Vue from 'vue'
function $reverseStr (str) {
2017-05-14 22:33:31 +00:00
return str.split('').reverse().join('')
}
Vue.prototype.$reverseStr = $reverseStr
2017-07-11 09:03:29 +00:00
export default undefined
// Legacy support: https://github.com/nuxt/nuxt.js/issues/4350
// <%= _.toUpper('foo') %>