feat(docs-infra): add the ability to expose globals (#34237)

Adds the ability to expose global symbols in the API docs via the `@globalApi` tag. Also supports optionally setting a namespace which will be added to the name automatically (e.g. `foo` will be renamed to `ng.foo`). Relevant APIs should also be exported through the `global.ts` file which will show up under `core/global`.

PR Close #34237
This commit is contained in:
Kristiyan Kostadinov
2019-12-06 13:41:15 +01:00
committed by Andrew Kushnir
parent 7dfd327099
commit 5dcc7e4524
8 changed files with 156 additions and 0 deletions

7
packages/core/global.ts Normal file
View File

@ -0,0 +1,7 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/