@@ -85,6 +85,8 @@ document.addEventListener('DOMContentLoaded', () => new Vue({
...
@@ -85,6 +85,8 @@ document.addEventListener('DOMContentLoaded', () => new Vue({
}));
}));
```
```
> When adding an `id` attribute to mount a Vue application, please make sure this `id` is unique across the codebase
#### Accessing the `gl` object
#### Accessing the `gl` object
When we need to query the `gl` object for data that won't change during the application's life cycle, we should do it in the same place where we query the DOM.
When we need to query the `gl` object for data that won't change during the application's life cycle, we should do it in the same place where we query the DOM.