Alfian Ardhi

I use Z shell or zsh in my computer. A few days ago i get error “corrupt history file”, so how to fix it, follow this step:

move to home directory

cd ~

move the .zsh_history file into another .zsh_history_old file

mv .zsh_history .zsh_history_old

write all printable strings into a new .zsh_history file

strings .zsh_history_old > .zsh_history

reload the history

fc -R .zsh_history

Thank you

--

--

Photo by Alexandru Tugui on Unsplash

For this article, we are going to see how to convert html template for cart and success page to vue component.

Pre-request

There is article you need to read which is my last article.

Create Shopping Cart Component

First cd into project application cd projects/src/views and create ShoppingCart.vue file and copy this code,

Create Success Component

For create this page, cd into project application cd projects/src/views and create Success.vue file and follow this code,

Finally, create vue component for all pages is done. For the next article we will implement how to use vuex as state management in this apps.

Thank You.

--

--

Photo by Kaitlyn Baker on Unsplash

In this article, we are going to see how to convert html template for detail product to vue component.

Pre-request

There is article you need to read which is my last article.

Create Breadcrumb Component

For breadcrumb, in components folder create BreadCrumb.vue file and copy this code,

Create Related Product Component

So for create this component, cd projects/src/components. Create RelatedProducts.vue file and follow this code,

Create Product Component

First cd into project application cd projects/src/views and create Product.vue file and copy this code,

In this code you will see, we used and added another components have built like Header Page, BreadCrumb, Footer and etc. And finally Product page is ready.

Thank You.

--

--