Skip to content

Commit 430c295

Browse files
committed
better naming for inlineTemplate in component
1 parent ff64dd6 commit 430c295

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/directives/component.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = {
5353
// check inline-template
5454
if (this.param('inline-template') !== null) {
5555
// extract inline template as a DocumentFragment
56-
this.template = _.extractContent(this.el, true)
56+
this.inlineTemplate = _.extractContent(this.el, true)
5757
}
5858
// component resolution related state
5959
this.pendingComponentCb =
@@ -207,10 +207,10 @@ module.exports = {
207207
// default options
208208
var options = {
209209
el: templateParser.clone(this.el),
210-
template: this.template,
210+
template: this.inlineTemplate,
211211
// if no inline-template, then the compiled
212212
// linker can be cached for better performance.
213-
_linkerCachable: !this.template,
213+
_linkerCachable: !this.inlineTemplate,
214214
_asComponent: true,
215215
_isRouterView: this._isRouterView,
216216
// if this is a transcluded component, context

0 commit comments

Comments
 (0)