diff --git a/src/compile/nodes/Component.ts b/src/compile/nodes/Component.ts index 60de3bcac5a4..fb244e5fba2d 100644 --- a/src/compile/nodes/Component.ts +++ b/src/compile/nodes/Component.ts @@ -78,6 +78,10 @@ export default class Component extends Node { ) { this.cannotUseInnerHTML(); + if (this.expression) { + block.addDependencies(this.expression.dependencies); + } + this.attributes.forEach(attr => { block.addDependencies(attr.dependencies); });