How to get value from ion-checkbox

Hello , I’m trying to get the value from checkbox so i can bind it .
but i keep get it with the condition ( true or false)

<ion-checkbox ng-repeat="model in models | filter:query" ng-model="order.models[]" >{{model.model_number}} </ion-checkbox>
current order: {{order}}

.controller('compareModelsCtrl',['$scope','$http', '$state' ,
function($scope, $http, $state,$location) {
$scope.models = data;
$scope.whichmodel = $state.params.modelId;
//$scope.toggleStar = function(model){
// = !;
$scope.order = {};

Any help will be appericaited, Thanks .

{{ item.text }}

Thanks for your reply , but When I click the checkbox, it sets my model like so:

[9: true, 15: true] What I want is a flat array like:

[9, 15] Is there a better to get the values from the checkbox and set them in an array on the model?