MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / formatToken

Function formatToken

06.Router/basic/js/vue.js:868–870  ·  view source on GitHub ↗

* Format a single token. * * @param {Object} token * @param {Vue} [vm] * @param {Boolean} [single] * @return {String}

(token, vm, single)

Source from the content-addressed store, hash-verified

866 */
867
868 function formatToken(token, vm, single) {
869 return token.tag ? token.oneTime && vm ? '"' + vm.$eval(token.value) + '"' : inlineFilters(token.value, single) : '"' + token.value + '"';
870 }
871
872 /**
873 * For an attribute with multiple interpolation tags,

Callers 1

tokensToExpFunction · 0.70

Calls 1

inlineFiltersFunction · 0.70

Tested by

no test coverage detected