Table of Content
Vuejs
// when to use :method
function onDeleteAssetBtn(clientAsset) {
return function() {
return clientAsset
.removeFromServer()
.then(() => {
refreshTableData();
})
.catch(err => {
console.error("can not delete");
console.error(err);
});
};
}
// when use @click
function onDeleteAssetBtn(clientAsset) {
clientAsset
.removeFromServer()
.then(() => {
refreshTableData();
})
.catch(err => {
console.error("can not delete");
console.error(err);
});
}
Vuetify
<!-- text color -->
<v-card-title class="white--text text--darken-1">WARNING</v-card-title>
<!-- background color -->
<v-card-title class="white lighten-1">WARNING</v-card-title>
<!-- font -->
<v-card-title class="headline font-weight-bold ">WARNING</v-card-title>
Stack Trace in Javascript
- https://code-maven.com/stack-trace-in-javascript
Today I Learned