mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 15:03:54 +08:00
7caaee27cc
```sh npx ember-holy-futuristic-template-namespacing-batman-codemod ensure-template-only-has-backing-class ``` We would like to colocate templates but, when no backing class exists, colocated templates extend `templateOnly` instead of `Ember.Component`. Generating the backing class helps avoid any behavioral changes. We can also run the `tagless-ember-components-codemod` to put the tags into the templates at which point we could convert these back to template-only components.
4 lines
80 B
JavaScript
4 lines
80 B
JavaScript
import Component from "@ember/component";
|
|
|
|
export default Component.extend({});
|