Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 20bbf9a

Browse files
MinThaMiemansona
authored andcommittedJul 11, 2024
move templates to components + remove EmberAnchor from the templates and updateAnchor from the component
1 parent 15b4e64 commit 20bbf9a

File tree

5 files changed

+11
-16
lines changed

5 files changed

+11
-16
lines changed
 

‎app/templates/events.hbs renamed to ‎app/components/events.hbs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<EmberAnchor @a={{this.anchor}} />
2-
<ApiIndexFilter @model={{this.model}} @filterData={{this.filterData}} as |filteredModel|>
1+
<ApiIndexFilter @model={{@model}} @filterData={{@filterData}} as |filteredModel|>
32
{{#each filteredModel.events as |event|}}
43
<ClassFieldDescription @type="event" @field={{event}} @model={{this.model}} />
54
{{/each}}

‎app/components/methods.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<ApiIndexFilter @model={{@model}} @filterData={{@filterData}} as |filteredModel|>
2+
{{#each filteredModel.methods as |method|}}
3+
<ClassFieldDescription @type="method" @field={{method}} @model={{this.model}} />
4+
{{/each}}
5+
</ApiIndexFilter>

‎app/components/properties.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<ApiIndexFilter @model={{@model}} @filterData={{@filterData}} as |filteredModel|>
2+
{{#each filteredModel.properties as |property|}}
3+
<ClassFieldDescription @type="property" @field={{property}} @model={{this.model}} />
4+
{{/each}}
5+
</ApiIndexFilter>

‎app/templates/methods.hbs

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎app/templates/properties.hbs

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.