[Vuejs]-Laravel and Vue: My layout blade loads a script that my components can't see

0👍

you need to call your script before app.js file like this

<script>
window.fbAsyncInit = function() {

FB.init({
    appId   : '{{ fb_app_id() }}',
    xfbml   : true,
    version : '{{ fb_api_version() }}'
});
};
</script>
<script src="your path to app.js file"></script>

Leave a comment