Skip to content

Instantly share code, notes, and snippets.

@Thaekeh
Thaekeh / simpleSearch.js
Last active November 4, 2022 23:21
Simple search by using the included() method
computed: {
searchResult() {
let tempRecipes = this.recipes
if (this.searchValue != '' && this.searchValue) {
tempRecipes = tempRecipes.filter((item) => {
return item.title
.toUpperCase()
.includes(this.searchValue.toUpperCase())
})
//Self-Signed Certificate for using with VS Code Live Server
//Save both files in a location you will remember
1. create a private key
openssl genrsa -aes256 -out localhost.key 2048
// you will be prompted to provide a password
//this will create localhost.key (call it whatever you like)
2. create the certificate