diff options
| -rw-r--r-- | docs/src/ngdoc.js | 18 | ||||
| -rw-r--r-- | src/directive/input.js | 12 |
2 files changed, 24 insertions, 6 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index efd5afd8..6cbf816c 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -446,6 +446,24 @@ Doc.prototype = { }); }, + html_usage_inputType: function(dom){ + var self = this; + dom.h('Usage', function() { + dom.code(function() { + dom.text('<input type="' + self.shortName + '"'); + (self.param||[]).forEach(function(param){ + dom.text('\n '); + dom.text(param.optional ? ' [' : ' '); + dom.text(param.name); + dom.text(BOOLEAN_ATTR[param.name] ? '' : '="..."'); + dom.text(param.optional ? ']' : ''); + }); + dom.text('>'); + }); + self.html_usage_parameters(dom); + }); + }, + html_usage_directiveInfo: function(dom) { var self = this; var list = []; diff --git a/src/directive/input.js b/src/directive/input.js index 16d8f6c8..cccfb675 100644 --- a/src/directive/input.js +++ b/src/directive/input.js @@ -7,7 +7,7 @@ var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/; var inputType = { /** - * @ngdoc directive + * @ngdoc inputType * @name angular.module.ng.$compileProvider.directive.input.text * * @description @@ -73,7 +73,7 @@ var inputType = { /** - * @ngdoc directive + * @ngdoc inputType * @name angular.module.ng.$compileProvider.directive.input.number * * @description @@ -141,7 +141,7 @@ var inputType = { /** - * @ngdoc directive + * @ngdoc inputType * @name angular.module.ng.$compileProvider.directive.input.url * * @description @@ -206,7 +206,7 @@ var inputType = { /** - * @ngdoc directive + * @ngdoc inputType * @name angular.module.ng.$compileProvider.directive.input.email * * @description @@ -269,7 +269,7 @@ var inputType = { /** - * @ngdoc directive + * @ngdoc inputType * @name angular.module.ng.$compileProvider.directive.input.radio * * @description @@ -310,7 +310,7 @@ var inputType = { /** - * @ngdoc directive + * @ngdoc inputType * @name angular.module.ng.$compileProvider.directive.input.checkbox * * @description |
