docs: latest site updates (#2126)

This commit is contained in:
Pat Cavit 2018-04-20 08:36:08 -07:00 committed by GitHub
parent 6fb77b7771
commit c335aa70ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 27 additions and 27 deletions

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: