rompetomp / inertia-bundle

Inertia.js server-side adapter for Symfony
MIT License
151 stars 36 forks source link

Add support for templating view data (fix #7) #8

Closed innocenzi closed 4 years ago

innocenzi commented 4 years ago

See https://github.com/rompetomp/inertia-bundle/issues/7. Works the same way as shared properties.

Single: $inertia->render('component', [ 'prop' => 'value' ], [ 'viewData' => 'value']); Multiple (in Controller Event): $this->inertia->setViewData('viewData', 'value');

innocenzi commented 4 years ago

I think my php-cs-fixer and StyleCI are not quite in sync. Could you possibly fix it for me?

rompetomp commented 4 years ago

It should fix itself once I merge (I think)