Skip to content

Commit 488a036

Browse files
committed
Mostly Revert "fix(docs): directive events + cleanup"
This reverts commit 8fb34f0.
1 parent 716dd5f commit 488a036

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

docs/src/ngdoc.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,24 @@ Doc.prototype = {
446446
});
447447
},
448448

449+
html_usage_inputType: function(dom){
450+
var self = this;
451+
dom.h('Usage', function() {
452+
dom.code(function() {
453+
dom.text('<input type="' + self.shortName + '"');
454+
(self.param||[]).forEach(function(param){
455+
dom.text('\n ');
456+
dom.text(param.optional ? ' [' : ' ');
457+
dom.text(param.name);
458+
dom.text(BOOLEAN_ATTR[param.name] ? '' : '="..."');
459+
dom.text(param.optional ? ']' : '');
460+
});
461+
dom.text('>');
462+
});
463+
self.html_usage_parameters(dom);
464+
});
465+
},
466+
449467
html_usage_directiveInfo: function(dom) {
450468
var self = this;
451469
var list = [];

src/directive/input.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/;
77
var inputType = {
88

99
/**
10-
* @ngdoc directive
10+
* @ngdoc inputType
1111
* @name angular.module.ng.$compileProvider.directive.input.text
1212
*
1313
* @description
@@ -73,7 +73,7 @@ var inputType = {
7373

7474

7575
/**
76-
* @ngdoc directive
76+
* @ngdoc inputType
7777
* @name angular.module.ng.$compileProvider.directive.input.number
7878
*
7979
* @description
@@ -141,7 +141,7 @@ var inputType = {
141141

142142

143143
/**
144-
* @ngdoc directive
144+
* @ngdoc inputType
145145
* @name angular.module.ng.$compileProvider.directive.input.url
146146
*
147147
* @description
@@ -206,7 +206,7 @@ var inputType = {
206206

207207

208208
/**
209-
* @ngdoc directive
209+
* @ngdoc inputType
210210
* @name angular.module.ng.$compileProvider.directive.input.email
211211
*
212212
* @description
@@ -269,7 +269,7 @@ var inputType = {
269269

270270

271271
/**
272-
* @ngdoc directive
272+
* @ngdoc inputType
273273
* @name angular.module.ng.$compileProvider.directive.input.radio
274274
*
275275
* @description
@@ -310,7 +310,7 @@ var inputType = {
310310

311311

312312
/**
313-
* @ngdoc directive
313+
* @ngdoc inputType
314314
* @name angular.module.ng.$compileProvider.directive.input.checkbox
315315
*
316316
* @description

0 commit comments

Comments
 (0)