@@ -7,7 +7,7 @@ function Watcher(vm, expOrFn, cb) {
if (typeof expOrFn === 'function') {
this.getter = expOrFn;
} else {
- this.getter = this.parseGetter(expOrFn);
+ this.getter = this.parseGetter(expOrFn.trim());
}
this.value = this.get();
@@ -13,7 +13,7 @@
{{someStr}}
<span v-text="child.someStr"></span>
</p> -->
- <p>{{getHelloWord}}</p>
+ <p>{{ getHelloWord }}</p>
<p v-html="htmlStr"></p>
<button v-on:click="clickBtn">change model</button>
</div>