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

Vue: Component template should contain exactly one root element. #1159

Closed
iBobik opened this issue Jan 7, 2020 · 1 comment
Closed

Vue: Component template should contain exactly one root element. #1159

iBobik opened this issue Jan 7, 2020 · 1 comment
Labels
content Issues related to the contents of the documentation website package: vue Issues related to the Ionic Vue documentation

Comments

@iBobik
Copy link

iBobik commented Jan 7, 2020

URL
https://ionicframework.com/docs/api/header (and some others)

What is missing or inaccurate about the content on this page?
When I copy code example for Vue as-is it will thow error "Component template should contain exactly one root element."

Ideally it would be nice to describe on docs of ion-app, ion-content, etc. how to deal with this Vue requirement because Ionic does not support having some intermediate element between app and content:

<ion-app>
  <div>
    <ion-header></ion-header>
    <ion-content></ion-content>
  </div>
</ion-app>
@iBobik iBobik added the content Issues related to the contents of the documentation website label Jan 7, 2020
@dotNetkow dotNetkow added the package: vue Issues related to the Ionic Vue documentation label Jan 7, 2020
@brandyscarney
Copy link
Member

Thanks for the issue! We have some docs on the structure here: https://ionicframework.com/docs/layout/structure

Since the structure page is written in vanilla JS, I think it would be good to split this into multiple framework specific pages. I'm going to close this since there's an issue to do that here: #594

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Issues related to the contents of the documentation website package: vue Issues related to the Ionic Vue documentation
Projects
None yet
Development

No branches or pull requests

3 participants