Angular within aspx page

0

I made an application in Angular 5 and it must be loaded in an aspx page; I tried using an iframe but it does not load me, so my second option was to use jQuery and load the page in a div:

this is my code

<script>
$(document).ready(function () {
    console.log("ready!");
    $("#angular").load('https://localhost:4200');
});
</script>

<body>
    <form id="form1" runat="server">
    <div>
        <iframe src="https://localhost:4200"></iframe>
    </div>
        <div id="angular"></div>
    </form>
</body>

This error appears in the console:

    
asked by felipe caro 05.04.2018 в 19:08
source

1 answer

1

"Googling" your question I found a complete procedure guide for using an Angular 4 application in an ASP.NET 4 project. x directly in the Angular documentation. Remember to take into account the differences between versions 4 and 5 of Angular

    
answered by 08.04.2018 в 04:44