Hacker News new | ask | show | jobs
by Nickoladze 4093 days ago
Sometimes I'm stuck littering the DOM with random <div> or <span> tags for conditionals and whatnot in various templating engines.

ng-switch in AngularJS, for instance, is going to leave a wrapping tag for the switch declaration.

https://docs.angularjs.org/api/ng/directive/ngSwitch