Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors in the TwoApps showcase example #1078

Merged
merged 2 commits into from Apr 13, 2020

Commits on Apr 5, 2020

  1. Use the Msg::SetOpposite in two_apps example

    b4d5227 changed the name of
    `Msg::SetScope` to `Msg::SetOpposite` but the usages in the `main`
    functions of the `two_apps` examples were not updated.
    bryanjswift committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    0bd0cab View commit details
    Browse the repository at this point in the history
  2. Use new TwoModels struct as the TwoApps scene

    `TwoModels` is a `Component` that does not respond to changes but which
    creates two instances of the `Model` and mounts them as separate
    `yew::App<Model>` instances in the body. This is done to mimic the
    behavior of `two_apps/src/main.rs` which uses a static `index.html` file
    containing the `div.first-app` and `div.second-app` elements.
    `TwoModels::mounted` is responsible for replacing the `<div>` nodes it
    creates during the initial render with the `Model` components.
    bryanjswift committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    4e0bc5a View commit details
    Browse the repository at this point in the history