关于面包器导航问题,为什么要传入实体????

//面包器导航
$scope.grade =1;
$scope.setGrade =function(value){
$scope.grade =value;
}
$scope.selectList= function(p_entity){
if($scope.grade ==1){
$scope.entity_1 =null;
$scope.entity_2 =null;
}
if($scope.grade ==2){
$scope.entity_1 =p_entity;
$scope.entity_2 =null;
}
if($scope.grade ==3){
$scope.entity_2 =p_entity;
}

    $scope.findParentId(p_entity.id);
}

https://www.sohu.com/a/122055891_565767