mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 04:22:01 +08:00

```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({});
|