Accessing Parameters Using $stateParams

$stateParams can be injected into your components using the $inject and used as follows:

  $stateParams._id

But again, let's wrap it:

  ...
  getTaskId() {
    return this.$stateParams._id;
  };