Looks like you have everything nested inside of data, the structure should look like this:
export default {
props: {
students: Object,
test: Object,
},
data: function() {
return {
boundaries: [],
boundariesChartOptions: {},
...
}
},
computed: {},
watch: {},
created() {
Event.$on('toggled_boundaries', (show_grade_boundaries) => {
console.log('caught any');
if (show_grade_boundaries) {
this.getBoundaries()
console.log('caught true');
}
});
},
methods: {
getBoundaries() {
console.log('anything');
axios.get('teacher/boundaries/' + this.test.id).then(response => {
this.boundaries = response.data;
}).catch(function(error) {
console.log(error);
});
},
},
}
</script>