Copied to clipboard

Flag this post as spam?

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


  • Saif Obeidat 79 posts 292 karma points
    Dec 20, 2018 @ 14:45
    Saif Obeidat
    0

    Is it possible to add an Angular 6 App to Umbraco 7 Project

    I have an Umbraco Project and it's basically an informative website , but recently there was a decision to add to it some e-services ( interactive HTML forms ) which need Angular 6 or Ajax ..

    I used Ajax in similar project to handle the data coming from the server and control the HTML forms , but I found it kind of hard to control it with jQuery and Ajax .

    So I want to use Angular inside Umbraco ..

    is this possible ? If yes , how that can be done , because I've searched a lot but didn't find any result .

    Thanks in advance.

  • Dezignwhiz 3 posts 72 karma points
    Feb 25, 2019 @ 16:37
    Dezignwhiz
    0

    I'm looking for the same. Have you found any solution?

  • Saif Obeidat 79 posts 292 karma points
    Mar 03, 2019 @ 09:12
    Saif Obeidat
    0

    I used Vue.js instead of Angular, it's easy and straight forward.

  • Martin Griffiths 784 posts 1182 karma points c-trib
    Feb 26, 2019 @ 12:48
    Martin Griffiths
    0

    You can add ANY front end tech to Umbraco. But for it to be effective you need to bypass UmbracoSurfaceController as this is geared to returning standard C# Razor views.

    There are three possible ways to achieve this...

    1. Use UmbracoAPIController to return JSON instead of a view. This uses a fixed route ~/Umbraco/Api/[YourControllerName]
    2. Use the (now deprecated) REST API interface. This provides an entire HAL specification for your site. But securing it isn't straight forward.
    3. Use Umbraco Headless on Umbraco Cloud. Replacement for 2.
  • Saif Obeidat 79 posts 292 karma points
    Mar 03, 2019 @ 09:13
    Saif Obeidat
    0

    Thanks Martin, I will try this in the next projects.

  • Ivan Schuaste Cavalheiro 4 posts 75 karma points
    Jul 16, 2020 @ 16:50
    Ivan Schuaste Cavalheiro
    1

    I know it's an old question, but for future readers:

    I have a custom Controller to expose umbraco nodes as Json elements for easy Headless convertion :D

    https://gist.github.com/icavalheiro/582f009cc958f95478a2efda6c718ee0

    It's pretty simple in case you wanna use.

  • eolamisan 1 post 21 karma points
    Jul 24, 2020 @ 02:55
    eolamisan
    0

    I've built a Angular Demo to demonstrate how it could be done:

    https://github.com/eolamisan/UmbracoSpaDemo

Please Sign in or register to post replies

Write your reply to:

Draft