I am using Vue for quite sometime now but having troubles on accessing certain property of my object..
I have object named "table" with "data" and "Paginate" properties that is being passed as a Props to my Datatable Vue component. When I try to console.log the "table" object on my Datatable component, I can see that the "data" and "Paginate" properties has values, but when I try to access the using "this.table.data" I get 0 values..
here is the structure of my table object:
table : {
data : array[7],
paginate: Object
}
trying to access the this.table.data on "Mount" of the Vue instance.
Thanks for the help!
Component Code:
<script>
window.Event = new Vue();
export default {
props: {
tableid: String,
settings: Object,
table: Object,
},
mounted: function(){
console.log(this.table);
}
</script>