towry / n

Lots of notes here, check out the issues.
http://git.io/vEsyU
MIT License
4 stars 0 forks source link

Vue class component computed/getter not working/update #132

Closed towry closed 4 years ago

towry commented 4 years ago

You have to assign a value(other than undefined) to the property, otherwise the property wont be reactive.

// bad
name?: string;
// good
name: string = "";