Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<ion-app v-if="showMenu">
<IonSplitPane content-id="main-content" when="lg">
<ion-split-pane when="lg" content-id="main-content">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While the change to kebab-case for the component name is great for consistency, the attribute order could be improved for better readability by following the recommended Vue style guide conventions. Attributes that provide global awareness, like content-id, are typically placed before other attributes. 1

<ion-split-pane content-id="main-content" when="lg">

Style Guide References

Footnotes

  1. The official Vue Style Guide recommends an order for attributes where 'Global Awareness' attributes (like id) come before other attributes. content-id functions similarly to an id and should be placed before the when prop.

<Menu />
<ion-router-outlet id="main-content"></ion-router-outlet>
</IonSplitPane>
</ion-split-pane>
</ion-app>
<ion-app v-else>
<ion-router-outlet id="main-content"></ion-router-outlet>
Expand Down
Loading