From 6283e1e3fd072c80c2409c6e9049d07ae373a0fe Mon Sep 17 00:00:00 2001 From: Sean Date: Fri, 8 Sep 2017 12:59:10 -0700 Subject: [PATCH] Bind titleTemplate function call to component instance --- src/shared/getMetaInfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/getMetaInfo.js b/src/shared/getMetaInfo.js index db37a76..92613b0 100644 --- a/src/shared/getMetaInfo.js +++ b/src/shared/getMetaInfo.js @@ -85,7 +85,7 @@ export default function _getMetaInfo (options = {}) { // replace title with populated template if (info.titleTemplate) { if (typeof info.titleTemplate === 'function') { - info.title = info.titleTemplate(info.titleChunk) + info.title = info.titleTemplate.call(component, info.titleChunk) } else { info.title = info.titleTemplate.replace(/%s/g, info.titleChunk) }