Angular - Equivalent to asp.net mvc DisplayTemplates
Hello Community,
I have custom section where i want to display almost the same information as in a FrontendPage that is using a Html.DisplayFor mvc template. the ideia is to reuse the same services and viewmodels in backoffice as we have in the frontend part.
Is there a way to equivalent thing to DisplayTemplates in Angular? I know this is probably more an angular question then umbraco but maybe someone else had this question before.
Hi Sven. Maybe what i'm looking are components / directives yes. do you know a link where i can learn more about using directives or components in a umbraco way? hope it's clear to you what i need. not sure it is to me :D
Angular - Equivalent to asp.net mvc DisplayTemplates
Hello Community,
I have custom section where i want to display almost the same information as in a FrontendPage that is using a Html.DisplayFor mvc template. the ideia is to reuse the same services and viewmodels in backoffice as we have in the frontend part.
Is there a way to equivalent thing to DisplayTemplates in Angular? I know this is probably more an angular question then umbraco but maybe someone else had this question before.
Cheers, Marco
It depends what is inside your DisplayTemplate. If you are using defaults, then simple Angular binding will do.
If you are displaying a class with a displayTemplate, you can make a component/directive to handle complex binding.
To get the data, setup a UmbracoAuthorizedApiController that uses the same services as the frontend.
Hi Sven. Maybe what i'm looking are components / directives yes. do you know a link where i can learn more about using directives or components in a umbraco way? hope it's clear to you what i need. not sure it is to me :D
is working on a reply...