var app = angular.module('POMF', ['ngRoute'])
var template = 'includes/rec.html'

app.config(function ($routeProvider, $locationProvider) {
    $routeProvider.when('/', {
        controller: 'POMFController',
        templateUrl: template
    })
    .otherwise({ redirectTo: '/' })

    $locationProvider.html5Mode(true)
})

var c = 0

app.controller('POMFController', function ($scope) {
    $scope.inc = template

    $scope.rec = { name: 'rec ' + c++, parts: [] }

    $scope.add = function (rec) {
        rec.parts.push({ name: 'rec ' + c++, parts: [] })
    }

    $scope.del = function (parent, rec) {
        var n = parent.parts.indexOf(rec)
        if (n == -1) return
        parent.parts.splice(n, 1)
    }
})

@@ -711,12 +711,365 @@
 1)%0A    %7D%0A%7D)%0A
+%0Aapp.directive('ngEnter', function () %7B%0A    return function (scope, element, attrs) %7B%0A        element.bind('keypress', function (event) %7B%0A            if (event.which !== 13) return%0A            scope.$apply(function () %7B%0A                scope.$eval(attrs.ngEnter, %7B 'event': event %7D)%0A            %7D)%0A            event.preventDefault()%0A        %7D)%0A    %7D%0A%7D)%0A

Update POMF.js