docs: update router to use @publicApi tags (#26595)

PR Close #26595
This commit is contained in:
Pete Bacon Darwin
2018-10-19 18:25:11 +01:00
committed by Alex Rickabaugh
parent e0a9cfb5e2
commit 0c822b75f9
20 changed files with 67 additions and 65 deletions

View File

@ -251,6 +251,8 @@ try {
/**
* @deprecated Use `setAngularJSGlobal` instead.
*
* @publicApi
*/
export function setAngularLib(ng: any): void {
setAngularJSGlobal(ng);
@ -258,6 +260,8 @@ export function setAngularLib(ng: any): void {
/**
* @deprecated Use `getAngularJSGlobal` instead.
*
* @publicApi
*/
export function getAngularLib(): any {
return getAngularJSGlobal();
@ -267,6 +271,8 @@ export function getAngularLib(): any {
* Resets the AngularJS global.
*
* Used when AngularJS is loaded lazily, and not available on `window`.
*
* @publicApi
*/
export function setAngularJSGlobal(ng: any): void {
angular = ng;
@ -275,6 +281,8 @@ export function setAngularJSGlobal(ng: any): void {
/**
* Returns the current AngularJS global.
*
* @publicApi
*/
export function getAngularJSGlobal(): any {
return angular;

View File

@ -14,4 +14,7 @@
import {Version} from '@angular/core';
/**
* @publicApi
*/
export const VERSION = new Version('0.0.0-PLACEHOLDER');

View File

@ -99,6 +99,7 @@ let upgradeCount: number = 0;
*
* @deprecated Deprecated since v5. Use `upgrade/static` instead, which also supports
* [Ahead-of-Time compilation](guide/aot-compiler).
* @publicApi
*/
export class UpgradeAdapter {
private idPrefix: string = `NG2_UPGRADE_${upgradeCount++}_`;
@ -655,6 +656,7 @@ class ParentInjectorPromise {
*
* @deprecated Deprecated since v5. Use `upgrade/static` instead, which also supports
* [Ahead-of-Time compilation](guide/aot-compiler).
* @publicApi
*/
export class UpgradeAdapterRef {
/* @internal */