diff --git a/scripts/docs/processors/collect-inputs-outputs.js b/scripts/docs/processors/collect-inputs-outputs.js index f92c14ce23..c8b382e650 100644 --- a/scripts/docs/processors/collect-inputs-outputs.js +++ b/scripts/docs/processors/collect-inputs-outputs.js @@ -12,6 +12,12 @@ module.exports = function collectInputsOutputs() { memberLoop: for (var i in doc.members) { + + // identify properties to differentiate from methods + if (typeof doc.members[i].parameters == 'undefined') { + doc.members[i].isProperty = true; + } + if (doc.members[i].decorators && doc.members[i].decorators.length) { decoratorLoop: diff --git a/scripts/docs/templates/common.template.html b/scripts/docs/templates/common.template.html index 15ca4cba13..0a43975412 100644 --- a/scripts/docs/templates/common.template.html +++ b/scripts/docs/templates/common.template.html @@ -128,11 +128,11 @@ angular_controller: APIDemoCtrl <@ endif @> <@- macro functionSyntax(fn) @> <@- set sep = joiner(', ') -@> - <$ fn.name $>(<@- for param in fn.params @><$ sep() $> + <$ fn.name $><@- if not fn.isProperty @>(<@ endif -@><@- for param in fn.params @><$ sep() $> <@- if param.type.optional @>[<@ endif -@> <$ param.name $> <@- if param.type.optional @>]<@ endif -@> - <@ endfor @>) + <@ endfor @><@- if not fn.isProperty @>)<@ endif -@> <@ if fn.alias @>(alias: <$ fn.alias $>)<@ endif @> <@ endmacro -@> @@ -249,7 +249,7 @@ Improve this doc <@- if doc.statics.length -@> -

Static Methods

+

Static Members

<@- for method in doc.statics @><@ if not method.internal @>

<$ functionSyntax(method) $>

@@ -283,7 +283,7 @@ Improve this doc <@- if doc.members and doc.members.length @> -

Instance Methods

+

Instance Members

<@- for method in doc.members @>