Q:

get a reference to the control from ng-click event

I have a table row dynamically being populated with clickable images. When the image is clicked I need to pass its unique id to the controller. I have tried many different ways but so far unsuccessful. What I tried:
<td ng-repeat="Type in Types">
    <img ng-src="../../Images/{{Type.Path}}" ng-title="{{Type.TypeId}}" ng-model="n_type" ng-click="Process()" />
</td>

 $scope.Process = function () {
    console.log($scope.n_type);
    $scope.$parent.n_type = $scope.n_type;
 }

and
<td ng-repeat="Type in Types">
    <div data-ng-init="imgId='{{Type.TypeId}}';">
        <img ng-src="../../Images/{{Type.Path}}" data-ng-attr-id="imgId" ng-title="{{Type.TypeId}}" ng-model="n_type" ng-click="Process(imgId)" />
    </div>   
</td>

 $scope.Process = function () {
    console.log($scope.imgId);
    $scope.$parent.n_type = $scope.imgId;
 }

But in both cases the result is "undefined"

A:

Pass the ID as a param to your Process function:
<td ng-repeat="Type in Types">
    <img ng-src="../../Images/{{Type.Path}}" ng-click="Process(Type.imgId)" />  
</td>

and then
$scope.Process = function (imgId) {
    $scope.$parent.n_type = imgId;
 }

