A
A
Anton2016-02-12 12:12:01
symfony
Anton, 2016-02-12 12:12:01

Are there any hints on how to generate interfaces for angular2 in symfony3 based on model classes?

I’m doing true-SPA, I was pleased with the form builder in the second angular (before that I thought to generate templates with forms on the side of the symphony), but without typescript interfaces, this idea seems to me not very successful, and the question arose - maybe someone has already started to implement it?
UPD .: in fact, the idea in brackets will be implemented, you just need to teach the Form class in symphony to draw angular forms with interfaces, and think over caching so that the cache dies only after the alter table

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis, 2016-02-16
@prototype_denis

true-SPA is when your front communicates with the backend via api and true-SPA only knows that the backend has an api and nothing else.
And on the backend there is an AsseticBundle and a tweak (possibly used only for mail).
Your backend gives templates for the front - this is not true, unfortunately. It is necessary to give only the entry point to the application on the angular. Otherwise, it turns out that the backend knows something about the front and sometimes even depends on it.
For a solution, google for "Symfony form themes"
Good luck!

K
KorsaR-ZN, 2014-10-19
@likeapimp

Well, this is the best option.
Is it just to put the author in a separate table, in those two instead of the author, make a connection by author_id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question