[Vuejs]-How to use require.js define a template like vue component and connect the data

0👍

Maybe because of this?

I assume that console.log('this.Options Successful get data') works as expected. Try to change your loadOptions method as follows:

loadOptions() {
                ajax.get('/options/options').then(data => {
                    this.Options = data.Options;
                    console.log('this.Options Successful get data')
                });
            },

Arrow function should help to point this to your Vue component instance.

0👍

From the code, your template file lives at components/search/index.html, is the file being referenced properly?

Better still, Please put your code in a sandbox/jsfiddle and share the link. So, it would be easy for anyone to look at it for you.

Leave a comment