docs: awkward/redundant fix (#2120)

This commit is contained in:
Scotty Simpson 2018-04-13 22:35:04 -07:00 committed by Pat Cavit
parent 0c54409d41
commit 6f7f543b07

View file

@ -475,7 +475,7 @@ m.route(document.body, "/", {
})
```
Note that in this case, if the Layout component the `oninit` and `oncreate` lifecycle methods would only fire on the Layout component on the first route change (assuming all routes use the same layout).
Note that in this case, if the Layout component has `oninit` and `oncreate` lifecycle methods, they would only fire on the first route change (assuming all routes use the same layout).
To clarify the difference between the two examples, example 1 is equivalent to this code: