rompetomp / inertia-bundle

Inertia.js server-side adapter for Symfony
MIT License
153 stars 41 forks source link

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

Closed innocenzi closed 5 years ago

innocenzi commented 5 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 5 years ago

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

rompetomp commented 5 years ago

It should fix itself once I merge (I think)