diff --git a/addon/components/sequential-render.hbs b/addon/components/sequential-render.hbs
index e6757f6..2eca1af 100644
--- a/addon/components/sequential-render.hbs
+++ b/addon/components/sequential-render.hbs
@@ -1,11 +1,11 @@
{{yield (hash
content=this.content
isContentLoading=this.isContentLoading
- render-content=(component "sequential-render/content"
+ contentTemplate=(component "sequential-render/content"
isFullFilled=this.isFullFilled
showFadedState=this.showFadedState
)
- loader-state=(component "sequential-render/loader-state"
+ loaderTemplate=(component "sequential-render/loader-state"
isFullFilled=this.isFullFilled
)
retry=this.retry
diff --git a/addon/components/sequential-render.js b/addon/components/sequential-render.js
index d775235..66fe17a 100644
--- a/addon/components/sequential-render.js
+++ b/addon/components/sequential-render.js
@@ -18,14 +18,14 @@
@getData={{this.executePromise}}
@renderCallback={{action 'contentRenderCallback'}} as |renderHash|
>
-
+
// Handle loading state if required
-
-
+
+
// Use renderHash.content to render the content.
// Use renderHash.isContentLoading to act based on the data loading state.
// Use renderHash.retry action to retrigger data fetch and rendering as applicable.
- {{/renderHash.render-content}}
+
```
@class sequential-render
@@ -33,9 +33,9 @@
@yield {Hash} renderHash
@yield {Any} renderHash.content The response from performing getData.
@yield {boolean} renderHash.isContentLoading Flag to check the loading state of the data fetch.
- @yield {component} renderHash.render-content Block component used to render the content of the item.
+ @yield {component} renderHash.contentTemplate Block component used to render the content of the item.
Accepts loaderClass as an argument. This class can be used to style the subsequent loading states for the item during rerender.
- @yield {component} renderHash.loader-state Block component used to render the loading state of the item.
+ @yield {component} renderHash.loaderTemplate Block component used to render the loading state of the item.
@yield {action} renderHash.retry Exposes an action which can be used to retry the data fetch + render process without affecting the queue / app render states..
*/
diff --git a/tests/dummy/app/components/example-optimized/template.hbs b/tests/dummy/app/components/example-optimized/template.hbs
index b2ee929..09037fc 100644
--- a/tests/dummy/app/components/example-optimized/template.hbs
+++ b/tests/dummy/app/components/example-optimized/template.hbs
@@ -4,7 +4,7 @@
Dumbledore's Army
-
+
{{#each @spellWork as |spell|}}
@@ -15,10 +15,10 @@
{{/each}}
-
-
+
+
-
+
@@ -27,7 +27,7 @@
Participants
-
+
{{#each @participantsList as |person|}}
@@ -35,10 +35,10 @@
{{/each}}
-
-
+
+
-
+
@@ -47,14 +47,14 @@
Quick Notes
-
+
{{@notes}}
-
-
+
+
-
+
diff --git a/tests/dummy/app/templates/docs/usage.md b/tests/dummy/app/templates/docs/usage.md
index fdd6ab3..0e54f68 100644
--- a/tests/dummy/app/templates/docs/usage.md
+++ b/tests/dummy/app/templates/docs/usage.md
@@ -38,12 +38,12 @@ In this example, the critical or hero element is the content inside the left pan
```
Dumbledore's Army
-
-
+
{{#each this.spellWork as |spell|}}
@@ -54,11 +54,11 @@ In this example, the critical or hero element is the content inside the left pan