toggleAll(completed){
        this.model.read({completed: !completed}, data => {
            for (let item of data) {
                this.toggleComplete(item.id, completed, true);
            }
        });

        this._filter();
    }
/**
     * Will toggle ALL checkboxes' on/off state and completeness of models.
     * Just pass in the event object.
     */
Will toggle ALL checkboxes' on/off state and completeness of models.
Just pass in the event object.
Will toggle ALL checkboxes ' on / off state and completeness of models . Just pass in the event object .
toggleAll(completed){
        this.model.read({completed: !completed}, data => {
            for (let item of data) {
                this.toggleComplete(item.id, completed, true);
            }
        });
        this._filter();
    }
toggleAll ( completed ) { this . model . read ( { completed : ! completed } , data => { for ( let item of data ) { this . toggleComplete ( item . id , completed , true ) ; } } ) ; this . _filter ( ) ; }
Will toggle ALL checkboxes' on/off state and completeness of models.
Will toggle ALL checkboxes ' on / off state and completeness of models .