Hello!
I want to utilize Angular2 with ASP.NET MVC (not core). My goal is to generate UI on the server side. I have a model and I can generate a markup base on it.
everything works fine - selectors are processed by angular. Why does this happend, and how to utilize MVC markup? I expected that angular2 recieved markup MVC and processed it.
Hello! I want to utilize Angular2 with ASP.NET MVC (not core). My goal is to generate UI on the server side. I have a model and I can generate a markup base on it.
I have couple of Angular2 components:
I generating markup with MVC (razor engine) to something like this:
Unfortunately when angular application started my markup transforms in to
<my-app><h1>Angular</h1></my-app>
When I add markup in to AppComponent template, like this:everything works fine - selectors are processed by angular. Why does this happend, and how to utilize MVC markup? I expected that angular2 recieved markup MVC and processed it.