You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
templateOnly is importable from @ember/component/template-only according to the documentation, but it shows up in the API docs for Controller as a method.
I think I figured out what causes this. The templateOnly doc comment describes a @method but the @ember/component/template-only module doesn't define a class. By default YUIDoc seems to link methods to the class that was last parsed (and in this case that seems to be the Controller class).
From the YUIDoc syntax reference:
@method Indicates that the block describes a method for the current class. By default, the "current" class is the last class that YUIDoc parsed, but you can reset this with the @for tag.
So the fix would be to add a @for to the doc comment. Itt seems that other exports are documented that way as well. For example the runloop exports.
📙 Describe the Issue
templateOnly
is importable from@ember/component/template-only
according to the documentation, but it shows up in the API docs for Controller as a method.🔬 Minimal Reproduction
https://api.emberjs.com/ember/3.23/classes/Controller/methods/templateOnly?anchor=templateOnly
😕 Actual Behavior
Appears in the Controller API docs
🤔 Expected Behavior
Should appear as a submodule of
@ember/component
The text was updated successfully, but these errors were encountered: