3 ms·
When a Nue component is compiled it creates a native ES6 class directly from the contents of the inner script tag. The ES6 code is not traversed at all, let alo
by tipiirai 3y ago
When a Nue component is compiled it creates a native ES6 class directly from the contents of the inner script tag. The ES6 code is not traversed at all, let alone altered. That is: count = 0 is a native ES6 class instance variable.
- meiraleal 3y agowhere is the class instance in count = 0? It is implied, it will be supplied by the framework after compiling the code. So no, it is not a ES6 class instance variable.