Inline editing in Angular Js
<p>I want to implement Inline editing in Angular JS but following code is not working.</p>

<pre><code>&lt;tr ng-repeat="employee in employees" ng-include="getTemplate(employee)"&gt;
                    &lt;script type="text/ng-template" id="display"&gt;
                    &lt;td&gt;{{employee.Name}}&lt;/td&gt;
                    &lt;td ng-bind="employee.Age"&gt;&lt;/td&gt;
                    &lt;td ng-bind="employee.City"&gt;&lt;/td&gt;
                    &lt;td&gt;&lt;a href="#" ng-click="EditEmployee(employee.EmpId)"&gt;Edit&lt;/a&gt; &lt;/td&gt;
                    &lt;td&gt;&lt;a href="#" ng-click="DeleteEmployee(employee.EmpId)"&gt;Delete&lt;/a&gt; &lt;/td&gt;
&lt;/script&gt;


                    &lt;script type="text/ng-template" id="edit"&gt;
    &lt;td&gt;&lt;input type="hidden" ng-model="newemployee.EmpId" class="form-control input-sm"/&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" ng-model="newemployee.Name" class="form-control input-sm"/&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" ng-model="newemployee.Age" class="form-control input-sm"/&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" ng-model="newemployee.City" class="form-control input-sm"/&gt;&lt;/td&gt;
    &lt;td&gt;
     &lt;button type="button" class="btn btn-primary" ng-click="updateEmployee(employee)"&gt;Save&lt;/button&gt;
     &lt;button type="button" class="btn btn-danger" ng-click="reset()"&gt;Cancel&lt;/button&gt;
    &lt;/td&gt;
                    &lt;/script&gt;
                &lt;/tr&gt;
</code></pre>

<p>The following code is not getting called-</p>

<pre><code>$scope.employees = [];
$scope.getTemplate = function (employee) {
        if (employee.empId === $scope.selected.empId){
            return 'edit';
        }
        else return 'display';
    };
</code></pre>