Adhering to the principle of DRY,
(actual code has more attributes and a few more inputs that differ only on values
supplied to ng-if and ng-model.) Edit:
Only 1 input will evaluate to true.
Having some experience with React's JSX and implementing this in conjunction with MS ASP's Razor View I felt that this is possible.
condensing repeated ng-model based on ng-if
nr: #1 dodano: 2017-11-30 19:11
HTML does not support conditional logic.
Be in mind that HTML is a markup language. You would need to use client-side scripting or server-side code to provide the conditional logic that would render your HTML accordingly.