This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Data - // stored as reactive variables. If converting to react the data would exist in the state | |
Computed Properties - // when Data changes, these update automatically. If converting to react these would be in the component body and update each rerender | |
// In computed properties, this._______ refers to the variable in data (state in react), can also be referred to as variables | |
// ex: (computed property) xsnPrice: function() { ... }, can be referred to in another computed property as this.xsnPrice | |
Helper Functions: | |
toFinString: function (x, fixed = 2) { | |
if (x < 1000000) { | |
return x.toFixed(fixed).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); |