From 7ed5d08af29f1e675eddfbe690e4cd8407bda029 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 14 Sep 2016 14:56:39 -0700 Subject: [PATCH] fix ngModule tag, api-list and json encoding --- tools/api-builder/angular.io-package/tag-defs/ngModule.js | 3 +-- .../angular.io-package/templates/api-list-data.template.html | 2 -- .../angular.io-package/templates/layout/_ng-module.html | 5 +++++ .../angular.io-package/templates/pipe.template.html | 2 ++ 4 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 tools/api-builder/angular.io-package/templates/layout/_ng-module.html diff --git a/tools/api-builder/angular.io-package/tag-defs/ngModule.js b/tools/api-builder/angular.io-package/tag-defs/ngModule.js index a3b2293664..38ee78e38d 100644 --- a/tools/api-builder/angular.io-package/tag-defs/ngModule.js +++ b/tools/api-builder/angular.io-package/tag-defs/ngModule.js @@ -1,6 +1,5 @@ module.exports = function() { return { - name: 'ngModule', - multi: true + name: 'ngModule' }; }; diff --git a/tools/api-builder/angular.io-package/templates/api-list-data.template.html b/tools/api-builder/angular.io-package/templates/api-list-data.template.html index 80a424a9a6..b67d0ab6ae 100644 --- a/tools/api-builder/angular.io-package/templates/api-list-data.template.html +++ b/tools/api-builder/angular.io-package/templates/api-list-data.template.html @@ -7,8 +7,6 @@ "docType": "{$ item.docType $}", "stability": "{$ item.stability $}", "secure": "{$ item.security $}", - "howToUse": "{$ item.howToUse | replace('"','\\"') $}", - "whatItDoes": {% if item.whatItDoes %}"Exists"{% else %}"Not Done"{% endif %}, "barrel" : "{$ module | replace("/index", "") $}" }{% if not loop.last %},{% endif %} {% endfor %}]{% if not loop.last %},{% endif %} diff --git a/tools/api-builder/angular.io-package/templates/layout/_ng-module.html b/tools/api-builder/angular.io-package/templates/layout/_ng-module.html new file mode 100644 index 0000000000..b3bdfbb22a --- /dev/null +++ b/tools/api-builder/angular.io-package/templates/layout/_ng-module.html @@ -0,0 +1,5 @@ +div(layout="row" layout-xs="column" class="row-margin ng-cloak") + div(flex="20" flex-xs="100") + h2(class="h2-api-docs") NgModule + div(class="code-links" flex="80" flex-xs="100"). + {$ doc.ngModule $} diff --git a/tools/api-builder/angular.io-package/templates/pipe.template.html b/tools/api-builder/angular.io-package/templates/pipe.template.html index 068333cc40..5f55d63c6b 100644 --- a/tools/api-builder/angular.io-package/templates/pipe.template.html +++ b/tools/api-builder/angular.io-package/templates/pipe.template.html @@ -13,6 +13,8 @@ include {$ relativePath(doc.path, '_util-fns') $} {% include "layout/_how-to-use.html" %} +{% include "layout/_ng-module.html" %} + div(layout="row" layout-xs="column" class="row-margin ng-cloak") div(flex="20" flex-xs="100") h2(class="h2-api-docs") Description