Tag Helper vs Angular Directives
-
Since I have got the options to have custom tags/attributes that can do wonders, I am in a phase to decide which to use (and in what situation) in normal line of business application. Assuming that I have flexibility to choose either architecture to build web app. Tag helpers or Angular Directives? I, personally, would not like to mix both in same application. Some parameters I am considering: 1. Security: Risk of leaking out by business logic even if it is UI related business logic. 2. Client side vs server side: code execution, caching result of custom tag (if feasible), data binding. 3. Performance: Load time, execution time, memory taken in server as well as browser. 4. Flexibility: watching change in my custom tag and providing dynamic behavior accordingly. 5. Logging and Exception handling: Should log to a persistence storage if exception occurred. 6. Modularity/Portability: I should be able to port my directives/taghelpers to other apps easily with single copy of source code (let version control handle other things). 7. Customization: Any custom needs should be derived from my native directive/tag helpers. 8. Features and community support. 9. <Add your parameter here>... Requesting to share your opinion on a scale of 10 against each parameter. I know all parameters can be handled properly in both technologies, but, Which one would you prefer and why?
Life is a computer program and everyone is the programmer of his own life.
-
Since I have got the options to have custom tags/attributes that can do wonders, I am in a phase to decide which to use (and in what situation) in normal line of business application. Assuming that I have flexibility to choose either architecture to build web app. Tag helpers or Angular Directives? I, personally, would not like to mix both in same application. Some parameters I am considering: 1. Security: Risk of leaking out by business logic even if it is UI related business logic. 2. Client side vs server side: code execution, caching result of custom tag (if feasible), data binding. 3. Performance: Load time, execution time, memory taken in server as well as browser. 4. Flexibility: watching change in my custom tag and providing dynamic behavior accordingly. 5. Logging and Exception handling: Should log to a persistence storage if exception occurred. 6. Modularity/Portability: I should be able to port my directives/taghelpers to other apps easily with single copy of source code (let version control handle other things). 7. Customization: Any custom needs should be derived from my native directive/tag helpers. 8. Features and community support. 9. <Add your parameter here>... Requesting to share your opinion on a scale of 10 against each parameter. I know all parameters can be handled properly in both technologies, but, Which one would you prefer and why?
Life is a computer program and everyone is the programmer of his own life.
Choose Vue[^]! :P I made a few sample / demo here![^]
All in one Menu-Ribbon Bar DirectX for WinRT/C# since 2013! Taking over the world since 1371!
-
Since I have got the options to have custom tags/attributes that can do wonders, I am in a phase to decide which to use (and in what situation) in normal line of business application. Assuming that I have flexibility to choose either architecture to build web app. Tag helpers or Angular Directives? I, personally, would not like to mix both in same application. Some parameters I am considering: 1. Security: Risk of leaking out by business logic even if it is UI related business logic. 2. Client side vs server side: code execution, caching result of custom tag (if feasible), data binding. 3. Performance: Load time, execution time, memory taken in server as well as browser. 4. Flexibility: watching change in my custom tag and providing dynamic behavior accordingly. 5. Logging and Exception handling: Should log to a persistence storage if exception occurred. 6. Modularity/Portability: I should be able to port my directives/taghelpers to other apps easily with single copy of source code (let version control handle other things). 7. Customization: Any custom needs should be derived from my native directive/tag helpers. 8. Features and community support. 9. <Add your parameter here>... Requesting to share your opinion on a scale of 10 against each parameter. I know all parameters can be handled properly in both technologies, but, Which one would you prefer and why?
Life is a computer program and everyone is the programmer of his own life.
A tag helper as far as I understand runs on the server side and "renders" some HTML crap, while Angular is a client side framework, not sure how you can even compare them. It's not even apples and oranges.
it ain’t broke, it doesn’t have enough features yet.