I found a good solution for inline editing content in angular js that is created by running ng-repeat on a model: <https://stackoverflow.com/a/16739227/2228613>

To expand on that solution I added a button to the page that has a ng-click directive as so:

```
<button ng-click="addCategory()" class="btn btn-large btn-primary" type="button">
<i class="icon-white icon-plus"></i> Add Category
</button>

```

The addCategory function is defined in my controller:

```
$scope.addCategory = function(){
    var newCategory = {id:0, name:"Category Name"};
    $scope.categories.unshift(newCategory);
}

```

The goal here is to allow the user to add a new record and automatically trigger the inline-edit directive once the view is updated with the new row. How can I trigger the inline-edit directive in such a manner?