This is pretty much it, the 'id' => '@{{ x.id }}' breaks it
<a href="{{ route('my.path', ['id' => '@{{ x.id }}' ] ) }}">#@{{ x.id }}</a>
I get
syntax error, unexpected '}'
Any idea how I can use angular data in route? Or another solution?
This doesn't work either (same error)
<a href="{{ action('MyController@show', '@{{x.id}}' ) }}">#@{{ x.id }}</a>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire