side rendering of Angular 2 apps within an ASP.NET website

I have an ASP.NET website, and I'm trying to incorporate some Angular 2 content into it. There are various pages in the website, with lots of static content. On certain pages I need to render some dynamic content that are rendered as Angular 2 applications.

/* CSS not important */                                                                                         body { font-family: sans-serif; padding: 5px; } [data-dynamic-app] { color: white; padding: 8px; background: #4444ff; margin: 10px 0; }
<section>
  <h2>Some Static Content</h2>
  <p>
    There is static content on the page that is rendered by the ASP.NET application.
  </p>
</section>

<div data-dynamic-app="appA">Placeholder for App A</div>
<div data-dynamic-app="appB">Placeholder for App B</div>
链接地址: http://www.djcxy.com/p/31358.html

上一篇: 带i18n的角度通用(服务器端渲染)

下一篇: 在ASP.NET网站中呈现Angular 2应用程序