angular.module('TryApi').directive 'param', [ '$filter', '$sce' ($filter, $sce) -> link = (scope, element, attrs, ctrl) -> scope.unique_id = Math.random() scope.getHtml = (html) -> return $sce.trustAsHtml(html) return { link: link restrict: 'A' require: 'ngModel' scope: parameter: '=ngModel' template: '' + '
' + ' {{ parameter.name }}' + ' {{ parameter.type }}' + '
' + '
' + '
' + ' ' + '