What is the difference between Tag Helper and Blazor in Asp.net core.
Tag Helper intoroduced in asp.net core 2.0 and Blazor introduced in Asp.net core 3.0.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Guest UserPosted Oct 24, 2020, 1:59 PM
Guest UserPosted Oct 24, 2020, 1:54 PM
Sachin SinghPosted Oct 24, 2020, 7:43 AM
ImageTagHelpercan append a version number to the image name.Farhan AhmedPosted Oct 24, 2020, 7:16 AM
Rajanikant HawaldarPosted Oct 24, 2020, 6:05 AM
The tag Helpers are Razor page specific. Blazor uses components. From the usage perspective, they both look same. For example, when you have a tag helper, you can use that same like an HTML element where the tag helper properties can be used like regular HTML attributes.
Blazor uses components. And components can be used same like HTML elements too. A component's properties can be accessed like an HTML attribute. So, when someone look into the usage code, he/she wont be bale to differentiate if an element is a Blazor component or tag helper.
But, the way tag helper is created is different than blazor. Tag helpers render pure HTML but the Blazor component is not directly an HTML renderer. Rather Blazor component works integrated with the Blazor ecosystem. Theoretically, a razor page tag helper should have been usable in Blazor, but until today, Blazor cannot recognize Razor tag helpers (which is unfortunate). On the contrary, a blazor component can be used within the Razor page using the component element. For example, here is a sample usage of the Blazor component within Razor pages.
Mageshwaran RPosted Nov 24, 2019, 12:36 AM
Guest UserPosted Jul 3, 2019, 1:58 AM