Model-Glue code to avoid

Joe just posted an interesting blog concerning ways to get rendered data into the controller. While I don’t agree 100% with his solution, I don’t have a better idea right now. ;)

That being said - I should point out that there is an API to get view data in the controller, but it does not work well and will (most likely) be removed from Model-Glue. I’m talking about the getView() method of the event object. I had trouble getting it to work right and after speaking with Joe, I’m simply going to remove it from my code and attack the problem from another route.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Comments