Here is a component I've done for an online shop CMS.
It's a search bar that fetches items.
This example is a search bar that displays a list of customers. You can view a customer summary with name and
email.
You also can select one of them with the 'choose button' ('Details' button doesn't work yet, you can easily
add a details link).
There is a list of fake customers available in data.json
, mocked by a fake server
sending data. The
component uses the data to display dynamically the list of customers.
# clone or download the project
$ git clone [email protected]:fatb38/vuejs-searchbar.git
# install dependencies
$ npm install
# serve with hot reload at localhost:8080
$ npm run dev