File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/@ember/component Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 99 without adding a wrapping `<div>` (or any of the other element customization behaviors of [@ember/component](/ember/release/classes/Component)).
1010 Specifically, this means that the template will be rendered as "outer HTML".
1111
12- In general, this method will be used by build time tooling and would not be directly written in an application. However,
13- at times it may be useful to use directly to leverage the "outer HTML" semantics mentioned above. For example, if an addon would like
14- to use these semantics for its templates but cannot be certain it will only be consumed by applications that have enabled the
15- `template-only-glimmer-components` optional feature.
12+ In apps, this method will usually be inserted by build-time tooling the handles converting `.hbs` files into component Javascript modules and
13+ would not be directly written by the application author.
14+
15+ Addons may want to use this method directly to ensure that a template-only component is treated consistently in all Ember versions (Ember versions
16+ before 4.0 have a "template-only-glimmer-components" optional feature that causes a standalone `.hbs` file to be interpreted differently).
1617
1718 @example
1819
You can’t perform that action at this time.
0 commit comments