Launch an event when checking a checkbox in Angular2 : <p>I'm newbie in Angular2 and in web globally , I want to launch an action that changes an oject paramater value in the Database when checking a <code>checkbox</code> and or unchecking it using <code>Material-Design</code>, I tried with <code>[(ngModel)]</code> but nothing happened. the idea is that i have to add some propositions with <code>checked | unchecked</code> status to tell if it is a <code>true</code> or <code>false</code> proposition. Here is the proposition model </p>

<pre><code>    export class PropositionModel {
        id:string;
        wordingP:string; // the proposition
        propStatus:Boolean; // the proposition status
}
</code></pre>

<p>here is the Html code for a proposition :</p>

<pre><code>&lt;div class="uk-width-xlarge-1-1 uk-width-medium-1-2"&gt;
                &lt;div (submit)="addProp1()" class="uk-input-group"&gt;
                    &lt;span class="uk-input-group-addon"&gt;&lt;input type="checkbox"  data-md-icheck/&gt;&lt;/span&gt;
                    &lt;label&gt;Proposition 1&lt;/label&gt;
                    &lt;input [(ngModel)]="proposition1.wordingP" type="text" class="md-input" required class="md-input"/&gt;
                &lt;/div&gt;
            &lt;/div&gt;
</code></pre>

<p>here is the TypeScript code for adding the proposition:</p>

<pre><code>addProp1() {
        this.proposition1 = new PropositionModel();
        this.proposition1.propStatus = false;
        this.propositionService.addProposition(this.proposition1)
            .subscribe(response=&gt; {
                console.log(response);
                console.log(this.proposition1);
                this.proposition1 = new PropositionModel();})
    }
</code></pre>

<p>And as you can see i made it a <code>false</code> by default for the <code>proposition status</code> and I want to change it once i checked the proposition.
Here is an image how it looks for a better issue understanding.
<a href="https://i.stack.imgur.com/on1ie.png" rel="noreferrer"><img src="https://i.stack.imgur.com/on1ie.png" alt="enter image description here"></a></p>

<p>Any help Please ? </p>
