Scroll + limitTo

by norcaljohnny

HTML

<button onclick="myFunction()">Load new document</button>


<div class="test" ng-controller="Ctrl">
  <div ng-repeat="task in tasks">
   <button ng-click="removeTask(task.id);">remove</button>
  </div>
<div>

JavaScript

var app = angular.module('app', []);

function Ctrl($scope) {
  $scope.tasks = [{id:1,'name':'test1'}, {id:2,'name':'test2'}, {id:3,'name':'test3'}];
    
  $scope.removeTask = function(taskId){
    alert("Task Id is "+taskId);
  };
}

function myFunction() {
    location.assign("http://www.example.com");
}