Skip to content

Commit

Permalink
template
Browse files Browse the repository at this point in the history
bug fix for each
  • Loading branch information
fehmi committed Sep 3, 2024
1 parent b66767b commit 697ce1e
Show file tree
Hide file tree
Showing 5 changed files with 204 additions and 200 deletions.
5 changes: 5 additions & 0 deletions docs/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
| **beforeFirstRender** | Before component rendered to the DOM at the first time |
| **afterFirstRender** | After component rendered to the DOM at the first time |
|||
| **beforeRender** | Before every render |
| **afterRender** | After every render |
|||
| **beforeRerender** | Before component rerendered/updated on the DOM |
| **afterRerender** | After component rerendered/updated on the DOM |
|||
Expand All @@ -16,6 +19,8 @@
|||
| **disconnected** | Triggered when the component is removed from the DOM |

!> DOM and state variables is not available in "construct". You can only reach them in "render" events, especially if you are using routers.

## Usage Example

<repl-component id="sp34gk6ealoxiwu" donwload="true"></repl-component>
2 changes: 1 addition & 1 deletion examples/app-router/web-app.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>

web app {state.name}
<a-router style="display: block;">
<a-outlet></a-outlet>
<a-route path="/" element="home-page"></a-route>
Expand Down
Loading

0 comments on commit 697ce1e

Please sign in to comment.