3 ms·
I’m curious what it means for people using single page components and how the default exported module would be structured with the new API. All the examples use
by dmix 7y ago
I’m curious what it means for people using single page components and how the default exported module would be structured with the new API. All the examples use the inline template strings.
The primary change seems to just be merging most of the keys/options (data, computed, watchers, etc) of the module into various functions within setup() which itself may require from coding best-practice guidelines since setup() is going to get pretty big.
I’d love to see a largish component converted to be able to compare the two instead of the small examples with one or two functions within it.
- marcagba 7y agoI've noticed this example of converted component on the RFC discussion: https://gist.github.com/Akryum/6eff23ae9f7483d6b5151c26d18842c2 https://gist.github.com/Akryum/6eff23ae9f7483d6b5151c26d1884...