12:38 I think you should `export *default* foo` there
@pndyjack6 жыл бұрын
Hey man, thanks for the nice informational video. Can you tell me what the best way is to keep models in sync between clients and APIs in different languages? Let's say between a .NET Web API and a JS frontend.
@FredrikChristenson6 жыл бұрын
Hi Jaimin! The way I do it is to declare a frontend model that validates the incoming data at runtime, I have a few videos on the way I do it but that is in essence the idea. Simply wrap the response from any ajax call in to a model that extracts the expected values and logs out an error if the value isn't there or if it is the wrong type. It works very well when you want to keep your models in sync as you will know as soon as the server model has changed in a way the frontend doesn't expect. Have a great day and thank you so much for watching!
@pndyjack6 жыл бұрын
Ok, thanks. I look forward to the videos!
@oleksandrnechaiev71535 жыл бұрын
Thanks^^
@tjalferes6 жыл бұрын
thanks
@FredrikChristenson6 жыл бұрын
No worries m8! Have a great day and thank you so much for watching!