【Feature Request】Request Angular's template from razor views at build time. #226

Closed
opened 2025-08-09 17:15:29 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @ElderJames on 1/16/2018

In order to use the taghelper feature with Angular, I must set a url to the TemplateUrl property of @Component.
Howerver,I can't build the angular project with AOT mode,and the template would request the asp.net server every time the page rendering.On the other hand,it would make the vender file very large.

So,I request a feature that at webpack build time, asp.net core can generate the rendered html template for angular's AOT building.

Look forward to your good news, thanks!

image

*Originally created by @ElderJames on 1/16/2018* In order to use the taghelper feature with Angular, I must set a url to the TemplateUrl property of @Component. Howerver,I can't build the angular project with AOT mode,and the template would request the asp.net server every time the page rendering.On the other hand,it would make the vender file very large. So,I request a feature that at webpack build time, asp.net core can generate the rendered html template for angular's AOT building. Look forward to your good news, thanks! ![image](https://user-images.githubusercontent.com/7550366/34987377-eae8b768-faf5-11e7-987a-e99b89eb2163.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#226
No description provided.