These are my code
data: {
cat1 : {name: "Category 1", reference : false},
cat2 : {name: "Subcategory 2", reference: this.cat1}
}
When I am going to called this.cat2.reference from any function, its giving me value false. I don't want to declare the cat1 outside somewhere and make reference here. I want the exactly same structure as above so that, I can get the cat2 reference perfectly.
Anyone could you please advice me any solution?