i don´t know if what i´m trying to do is doable, but here we go.
I´m making a SPA (Single Page Application) with Angular and Umbraco. This means, that i don´t use Views but instead let Angular handle all templating. I have created a contentApi, that Angular use to get data fra Umbraco in Json-format.
Now i wan´t to use Umbraco Forms, but i can´t get my head around rendering markup for the form in my api. If i had a view i would do:
@Html.RenderAction("Render", "UmbracoForms", new {formId = g, mode = "form"});
But how do i render the same markup from my API? Is it at all possible?
actual not the way i intended in the first place. We ended up rendering forms as a normal View, and created a directive for handling the form in our SPA: https://github.com/skybrud/sky-umbraco-form
Umbraco Form - SPA rendering
Hi there,
i don´t know if what i´m trying to do is doable, but here we go.
I´m making a SPA (Single Page Application) with Angular and Umbraco. This means, that i don´t use Views but instead let Angular handle all templating. I have created a contentApi, that Angular use to get data fra Umbraco in Json-format.
Now i wan´t to use Umbraco Forms, but i can´t get my head around rendering markup for the form in my api. If i had a view i would do:
But how do i render the same markup from my API? Is it at all possible?
Best regards René
Hi René,
Did you solve this problem ?
Thanks
Hi Alex,
actual not the way i intended in the first place. We ended up rendering forms as a normal View, and created a directive for handling the form in our SPA: https://github.com/skybrud/sky-umbraco-form
Hope this can help you.
/René
Thanks, didn't know about 'sky-umbraco-form'
/Best
is working on a reply...