Table of Content
Mongoose
updateOption
const options = { new: true }; // return docs new
const options = { updsert: true }; // whether to create the doc if it doesn't match (false)
const options = { overwrite: true }; // disables update-only mode, allowing you to overwrite the doc (false)
Vuejs Watch detailed prop
watch: {
'eventBus.currentAoiComponent.tagList': function () {
const copiedTagList = [];
const tagList = this.eventBus.currentAoiComponent.tagList;
tagList.forEach((tag) => {
copiedTagList.push(tag);
// console.log(tag);
})
this.tempTagList = copiedTagList;
},
'eventBus.currentEditableGeometry': function () {
console.warn('change current geometry');
},
}
vuejs folder structure
- pages
- page blueprint
- views
- consist of page
- partial pages.
- components
- reusable componet
- button with dialog
- header
Today I Learned