var v_root = new Vue({
delimiters: [ '[[', ']]' ],
el: '#vue-main',
data: {
jobs: [],
report_links: '{{ report_links }}',
},
mounted: function() {
console.log(this.report_links);
<-- this logs the expected data-->>
},
Vue.component('overview', {
delimiters: [ '[[', ']]' ],
props: ['jobs', 'report_links'],
mounted: function() {
console.log(this.report_links);
<-- this logs 'undefined' -->
console.log(this.jobs)
<-- this logs jobs as expected-->>
},
Why am I able to access jobs from my component but not report_links?
Not sure if it matters but report_links should return ['test1', 'test2']