How to handle checkbox binding


Hi all!! I am new with ember and I have a question about checkbox binding.

Here is my hbs : {{#each menu}}


<p class="float-right" id="{{}}" {{input type="checkbox" checked=this.checkCompleteToday click=(action "CompletedToday"}} {{/each}}

Menu is a model has a attribute called Completed date, which is a array contains a list of dates(YYYY-MM-DD), there should be a constructor function to check if it’s completed TODAY, if it is completed, make the checkbox of that menu as checked. I don’t know how to handle this actually, do i need to create another attribute for menu?

Any suggestion would be appreciated