Copied to clipboard

Flag this post as spam?

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


  • Simon 692 posts 1068 karma points
    Jun 30, 2016 @ 10:18
    Simon
    0

    Using Umbraco as a Backend for Angular 2 Single Page App

    Hi guys.

    I am developing a single page app where I am using umbraco as my back-end and Angular 2 as my frontend.

    I have copied the necessary files to rung Angular 2 in the homepage.cshtml of my umbraco views so that is runs first.

    But I am having an issue where forexample have a page on angular 2 named Login, when accesse http://www.mywebsite.com/Login it is throwing an error

    No physical template file was found for template umbTextPage
    
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: System.Exception: No physical template file was found for template umbTextPage
    

    /Login is actually a page on Angular 2.

    Are there a way how can I tell umbraco to ignore paths except /umbraco?

    Thanks

  • David Peck 615 posts 1646 karma points c-trib
    Jun 30, 2016 @ 13:08
    David Peck
    1

    There is probably a better solution, but all I can think of right now is to create a new IContentFinder than always returns your homepage.

  • 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