### Angular function

# doItemAction source

  `mode` could be in ['normal', 'modal', 'new'] . the default mode is 'normal' and it loads data on same tab without modal. 'modal' will use modal to manipulate data and do all actions in that modal. 'new' will be open new page with response data

  ##### Dependencies:

  Name | Type | Description
  --- | --- | ---
  $scope | Object |
  key | string |
  todo | Object |
  mode | string |