When I add some conditional classes and attribute bindings in the template, Angular retains those attribute directives in the DOM, as seen in the developer tools:
<input type="radio" name="gender" ng-model="lsmodal.data.profile.gender" value="male" ng-attr-checked="lsmodal.app.state.isMaleChecked" ng-click="lsmodal.app.meta.selectRadioButton($event, 'male')" class="ng-valid ng-dirty ng-touched ng-valid-parse">
This makes it difficult for me to visually read. Is there a way to prevent these directive bindings from rendering so that I only see the vanilla HTML code like this:
<input type="radio" name="gender" value="male" checked />