[Vuejs]-VueFire watch for empty array property

0👍

Why don’t you initialize the cards property if nothing is returned from firebase?

categories: [{
  name: "todo",
  cards: ["second","first","second"]
},{
  name: "doing",
  cards: firebaseCollectionProperty || []
},{
  name: "done",
  cards: ["second", "fourth","first","third"]
}]

Leave a comment