Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Marco Teodoro 74 posts 149 karma points c-trib
    Jun 28, 2018 @ 11:48
    Marco Teodoro
    0

    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

  • Sven Geusens 169 posts 881 karma points c-trib
    Jun 29, 2018 @ 06:54
    Sven Geusens
    0

    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.

  • Marco Teodoro 74 posts 149 karma points c-trib
    Jul 06, 2018 @ 12:59
    Marco Teodoro
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies