Skip to content

Commit 255fe64

Browse files
author
Eyal Cherevatzki
authored
refactor: change "fragment" to "Fragment" to allow both usages
When registering a component with a kebab-case name then we could use it only with kebab-case, but if we register it using PascalCase then both kebab-case and PascalCase usages would work, like so: <fragment></fragment> <Fragment></Fragment>
1 parent c6f0884 commit 255fe64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const SSR = ssr
77

88
export const Plugin = {
99
install: function(Vue) {
10-
Vue.component('fragment', component)
10+
Vue.component('Fragment', component)
1111
}
1212
}
1313

0 commit comments

Comments
 (0)