This is a way to overflow, as you can just use sentences in comments display: noneor the like, but just as a fun exercise:
The syntax for invoking the comment directive is:
, - ng-bind , . :
app.directive('comment', function($interpolate) {
return {
restrict: 'M',
scope: true,
link: function(scope, element, attrs) {
var comment = $interpolate(attrs.comment)(scope);
element.replaceWith("<!-- " + comment + "-->" );
}
};
});
: