title: cannot read property 'push' of undefined
body: <pre><code>$scope.AddTask = function () {
      $scope.tasks.push([{
          "taskName": $scope.taskName,
          "priorty": $scope.selectedP
      }]);
  };
  $scope.tasks = [{
      "taskId": 1,
      "taskName": "task 1",
      "priorty": 1
  }, {
      "taskId": 2,
      "taskName": "task 2",
      "priorty": 2
  }, {
      "taskId": 3,
      "taskName": "task 3",
      "priorty": 3
  }];
  </code></pre>
  
  <p>I got an error of cannot read property 'push' of undefined in angularjs</p>
  
  <p>app demo : <a href="http://plnkr.co/edit/ObKoQn2tZ4evgJpKQBpH?p=preview" rel="nofollow">http://plnkr.co/edit/ObKoQn2tZ4evgJpKQBpH?p=preview</a></p>