I am using AngularJs (Angular 1) and I need to use a checkbox to Select / Unselect all other checkboxes.

Right now I have this:

```
<li ng-repeat="item in ctrl.items">
   <input type="checkbox" ng-model="item.selected">{{item.name}}
</li>

```

Then I have this in the controller:

```
ctrl.items = [
    {
        value: 0,
        name: 'Select All / Unselect all other checkboxes',
        selected: true
    },
    {
        value: 1,
        name: 'myCheckbox1',
        selected: true

    },
    {
        value: 2,
        name: 'myCheckbox2',
        selected: true

    },
    {
        value: 3,
        name: 'myCheckbox2',
        selected: true

    }

];

```

How can I make it so that the first checkbox basically just selects / unselects all other checkbboxes?