Mostly Revert "fix(docs): directive events + cleanup"

This reverts commit 8fb34f008e.
This commit is contained in:
Misko Hevery 2012-03-09 15:19:24 -08:00
parent 716dd5f3f9
commit 488a03631e
2 changed files with 24 additions and 6 deletions

View file

@ -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 = [];

View file

@ -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