diff --git a/aio/tests/deployment/e2e/smoke-tests.e2e-spec.ts b/aio/tests/deployment/e2e/smoke-tests.e2e-spec.ts index 2d58484fc6..66e246aeba 100644 --- a/aio/tests/deployment/e2e/smoke-tests.e2e-spec.ts +++ b/aio/tests/deployment/e2e/smoke-tests.e2e-spec.ts @@ -68,6 +68,7 @@ describe(browser.baseUrl, () => { /* Directive */ 'api/common/NgIf': 'class ngif', /* Enum */ 'api/core/ChangeDetectionStrategy': 'enum changedetectionstrategy', /* Function */ 'api/animations/animate': 'animate(', + /* Global */ 'api/core/global/ngApplyChanges': 'ng.applychanges(', /* Interface */ 'api/core/OnDestroy': 'interface ondestroy', /* Pipe */ 'api/common/JsonPipe': '| json', /* Type-Alias */ 'api/common/http/HttpEvent': 'type httpevent', diff --git a/aio/tools/transforms/angular-api-package/processors/updateGlobalApiPath.js b/aio/tools/transforms/angular-api-package/processors/updateGlobalApiPath.js index 4219a68f8f..dd7f4609a1 100644 --- a/aio/tools/transforms/angular-api-package/processors/updateGlobalApiPath.js +++ b/aio/tools/transforms/angular-api-package/processors/updateGlobalApiPath.js @@ -6,8 +6,8 @@ */ module.exports = function updateGlobalApiPathProcessor() { return { - $runAfter: ['computePathsProcessor'], - $runBefore: ['processNgModuleDocs'], + $runAfter: ['paths-computed'], + $runBefore: ['disambiguateDocPathsProcessor', 'processNgModuleDocs'], $process: function(docs) { docs.forEach(doc => { if (doc.global && doc.globalNamespace) { diff --git a/aio/tools/transforms/angular-api-package/processors/updateGlobalApiPath.spec.js b/aio/tools/transforms/angular-api-package/processors/updateGlobalApiPath.spec.js index 556dc1a221..726ae8732a 100644 --- a/aio/tools/transforms/angular-api-package/processors/updateGlobalApiPath.spec.js +++ b/aio/tools/transforms/angular-api-package/processors/updateGlobalApiPath.spec.js @@ -12,12 +12,12 @@ describe('updateGlobalApiPath processor', () => { it('should run before the correct processor', () => { const processor = processorFactory(); - expect(processor.$runBefore).toEqual(['processNgModuleDocs']); + expect(processor.$runBefore).toEqual(['disambiguateDocPathsProcessor', 'processNgModuleDocs']); }); it('should run after the correct processor', () => { const processor = processorFactory(); - expect(processor.$runAfter).toEqual(['computePathsProcessor']); + expect(processor.$runAfter).toEqual(['paths-computed']); }); it('should update the paths of namespaced global APIs', () => {