Skip to content

Commit a6204c4

Browse files
committed
style: add comments about _scopeId
1 parent 3659a94 commit a6204c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Preview.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ export default {
8686
8787
data.components = this.components;
8888
if (style) {
89+
// To add the scope id attribute to each item in the html
90+
// this way when we add the scoped style sheet it will be aplied
8991
data._scopeId = `data-${this.scope}`;
9092
addScopedStyle(style, this.scope);
9193
}

0 commit comments

Comments
 (0)