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

Move the container class to vue template. #108

Merged
merged 6 commits into from
Dec 7, 2018
Merged

Move the container class to vue template. #108

merged 6 commits into from
Dec 7, 2018

Conversation

hiroxto
Copy link
Owner

@hiroxto hiroxto commented Dec 6, 2018

Move the container class to vue template.

Old

<div class="container">
  <div id="app">
  </div>
</div>
new Vue({
  el: '#app',
  render: h => h(App),
});

Change to

<div id="app">
</div>
new Vue({
  el: '#app',
  template: `
    <div class="container">
      <App></App>
    </div>
  `,
  components: {
    App,
  },
});

@hiroxto hiroxto merged commit de8e096 into master Dec 7, 2018
@hiroxto hiroxto deleted the move-container branch December 7, 2018 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant