Angular 2 Checkbox preventDefault
问题 I am making a Bootstrap checkbox dropdown and the options is wrapped in an <a> tag that handles the click, but I also have a <input type="checkbox"> inside the a-tag. My problem occurs when the user is pressing on the actual checkbox instead of just the <a> element. Both are clicked and some conflict happen. The checkbox checked-state should be inverted but isn't. In Angular1 it worked to just use preventDefault() on the checkbox-click, but in my angular2-test it stops the checkbox from