Browse Source

make component name multi-word and use it with PascalCase (#1131)

Alex Kyriakidis 7 years ago
parent
commit
f738cb10c4

+ 4 - 4
examples/shopping-cart/components/App.vue

@@ -3,17 +3,17 @@
     <h1>Shopping Cart Example</h1>
     <hr>
     <h2>Products</h2>
-    <product-list></product-list>
+    <ProductList/>
     <hr>
-    <cart></cart>
+    <ShoppingCart/>
   </div>
 </template>
 
 <script>
 import ProductList from './ProductList.vue'
-import Cart from './Cart.vue'
+import ShoppingCart from './ShoppingCart.vue'
 
 export default {
-  components: { ProductList, Cart }
+  components: { ProductList, ShoppingCart }
 }
 </script>

+ 0 - 0
examples/shopping-cart/components/Cart.vue → examples/shopping-cart/components/ShoppingCart.vue