I'm new to Vue and utilising a World Cup API to build a simple Laravel app. I have the following code:
<img src="http://www.countryflags.io/@{{ match.home_team.code | truncate(2) }}/flat/64.png">
Which should ideally output the following:
<img src="http://www.countryflags.io/FR/flat/64.png">
But instead I get an error because it's not parsing the @{{ }} block properly inside Laravel/Vue.
This is the truncate filter I'm trying to use incase that's important - https://www.npmjs.com/package/vue-truncate-filter
match.home_team.code should return FRA for France for example, but I only need FR
What is the best way for me to achieve what I'm after?