Fix display of heritage (#2792)

* style(matchUpDirectiveDecorators): fix linting errors

* fix(doc-gen/templates): ensure heritage is displayed
This commit is contained in:
Pete Bacon Darwin 2016-12-14 19:17:37 +00:00 committed by Ward Bell
parent 6fd0a141ef
commit 81bc9feca6
3 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ var _ = require('lodash');
* @description
*
*/
module.exports = function matchUpDirectiveDecoratorsProcessor(aliasMap) {
module.exports = function matchUpDirectiveDecoratorsProcessor() {
return {
$runAfter: ['ids-computed', 'paths-computed'],
@ -20,7 +20,7 @@ module.exports = function matchUpDirectiveDecoratorsProcessor(aliasMap) {
if (doc.docType === 'directive') {
doc.selector = doc.directiveOptions.selector;
for(decoratorName in decoratorMappings) {
for(var decoratorName in decoratorMappings) {
var propertyName = decoratorMappings[decoratorName];
doc[propertyName] = getDecoratorValues(doc.directiveOptions[propertyName], decoratorName, doc.members);
}
@ -31,7 +31,7 @@ module.exports = function matchUpDirectiveDecoratorsProcessor(aliasMap) {
};
function getDecoratorValues(classDecoratorValues, memberDecoratorName, members) {
var optionMap = {};
var decoratorValues = {};
// Parse the class decorator

View File

@ -17,7 +17,7 @@ div(layout="row" layout-xs="column" class="ng-cloak")
div(flex="20" flex-xs="100")
h2(class="h2-api-docs") Class Overview
div(flex="80" flex-xs="100")
code(class="no-bg api-doc-code openParens") class {$ doc.name $} {
code(class="no-bg api-doc-code openParens") class {$ doc.name $}{$ doc.heritage $} {
{% if doc.statics.length %}
div(layout="column")

View File

@ -17,7 +17,7 @@ div(layout="row" layout-xs="column" class="ng-cloak")
div(flex="20" flex-xs="100")
h2(class="h2-api-docs") Interface Overview
div(flex="80" flex-xs="100")
code(class="no-bg api-doc-code openParens") interface {$ doc.name $} {
code(class="no-bg api-doc-code openParens") interface {$ doc.name $}{$ doc.heritage $} {
{% if doc.members.length %}
div(layout="column")