From: Alexandre Terrasa Date: Wed, 1 Jun 2016 00:29:13 +0000 (-0400) Subject: nitweb/angular: introduce entity-signature directive X-Git-Url: http://nitlanguage.org nitweb/angular: introduce entity-signature directive Signed-off-by: Alexandre Terrasa --- diff --git a/share/nitweb/directives/entity/signature.html b/share/nitweb/directives/entity/signature.html new file mode 100644 index 0000000..f3f2dc6 --- /dev/null +++ b/share/nitweb/directives/entity/signature.html @@ -0,0 +1,51 @@ + + + {{modifier}} + + + + + + + [ + + + {{mparam.name}} + : + + + , + + ] + + + + + ( + + + {{mparam.name}} + + : + + + ... + + , + + ) + + + : + + + + + : + + + + : + + + diff --git a/share/nitweb/javascripts/entities.js b/share/nitweb/javascripts/entities.js index c55da8f..820af42 100644 --- a/share/nitweb/javascripts/entities.js +++ b/share/nitweb/javascripts/entities.js @@ -37,4 +37,14 @@ templateUrl: '/directives/entity/doc.html' }; }) + + .directive('entitySignature', function() { + return { + restrict: 'E', + scope: { + mentity: '=' + }, + templateUrl: '/directives/entity/signature.html' + }; + }) })();