I have the following code
<input [type]="'checkbox'" [(ngModel)]="inputValue">
<p>Value: {{ inputValue }}</p>
Can somebody explain why the value in inputValue does not change? 
I can't set just type="checkbox" because I have dynamic type of input.
It works fine when type is text or number. It also works when the type of input is static (type="checkbox")
 
    