Skip to content

Commit 48bd025

Browse files
committedAug 4, 2018
fix #1621
1 parent 09db82b commit 48bd025

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/compile/nodes/Component.ts

+4
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ export default class Component extends Node {
7878
) {
7979
this.cannotUseInnerHTML();
8080

81+
if (this.expression) {
82+
block.addDependencies(this.expression.dependencies);
83+
}
84+
8185
this.attributes.forEach(attr => {
8286
block.addDependencies(attr.dependencies);
8387
});

0 commit comments

Comments
 (0)
Please sign in to comment.