I have several checkbox
but I can not make the value% co_from% false in my model change to booleano
.
in my component.ts I have the model initialized in this way
this.listaMembresia = new ItemMembresia(0, "", 0, 0, 0, 0, false);
in the html I have done it in several ways and the value does not change
<input type="checkbox" name="limite_semana" [checked]="listaMembresia.limite_semana" >
<input type="checkbox" name="2" [(ngModel)]="listaMembresia.limite_semana">
<input type="checkbox" name="limite_semana" [value]="true" [checked]="listaMembresia.limite_semana" >
I've tried it in these ways and I can not get results, I hope someone can help me
export class ItemMembresia
{
constructor(
public id:Number,
public nombre:String,
public costo:Number,
public duracion:Number,
public tiempo:Number,
public limite_por_dia:Number,
public limite_semana:Boolean
){}
}