docs: convert all @experimental
tags to @publicApi
tags (#26595)
PR Close #26595
This commit is contained in:

committed by
Alex Rickabaugh

parent
4bd9f53e8f
commit
24521f549c
@ -16,7 +16,7 @@ import {DOCUMENT} from '../dom/dom_tokens';
|
||||
/**
|
||||
* Represents a meta element.
|
||||
*
|
||||
* @experimental
|
||||
* @publicApi
|
||||
*/
|
||||
export type MetaDefinition = {
|
||||
charset?: string; content?: string; httpEquiv?: string; id?: string; itemprop?: string;
|
||||
@ -40,7 +40,7 @@ export function createMeta() {
|
||||
/**
|
||||
* A service that can be used to get and add meta tags.
|
||||
*
|
||||
* @experimental
|
||||
* @publicApi
|
||||
*/
|
||||
@Injectable({providedIn: 'root', useFactory: createMeta, deps: []})
|
||||
export class Meta {
|
||||
|
@ -26,7 +26,7 @@ export function createTitle() {
|
||||
* (representing the `<title>` tag). Instead, this service can be used to set and get the current
|
||||
* title value.
|
||||
*
|
||||
* @experimental
|
||||
* @publicApi
|
||||
*/
|
||||
@Injectable({providedIn: 'root', useFactory: createTitle, deps: []})
|
||||
export class Title {
|
||||
|
@ -23,7 +23,7 @@ const PROFILER_GLOBAL_NAME = 'profiler';
|
||||
* 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`
|
||||
* then hit Enter.
|
||||
*
|
||||
* @experimental All debugging apis are currently experimental.
|
||||
* @publicApi
|
||||
*/
|
||||
export function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T> {
|
||||
exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));
|
||||
@ -33,7 +33,7 @@ export function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T> {
|
||||
/**
|
||||
* Disables Angular tools.
|
||||
*
|
||||
* @experimental All debugging apis are currently experimental.
|
||||
* @publicApi
|
||||
*/
|
||||
export function disableDebugTools(): void {
|
||||
exportNgVar(PROFILER_GLOBAL_NAME, null);
|
||||
|
@ -43,7 +43,7 @@ export function unescapeHtml(text: string): string {
|
||||
* transferState.set(COUNTER_KEY, value);
|
||||
* ```
|
||||
*
|
||||
* @experimental
|
||||
* @publicApi
|
||||
*/
|
||||
export type StateKey<T> = string & {__not_a_string: never};
|
||||
|
||||
@ -59,7 +59,7 @@ export type StateKey<T> = string & {__not_a_string: never};
|
||||
* transferState.set(COUNTER_KEY, value);
|
||||
* ```
|
||||
*
|
||||
* @experimental
|
||||
* @publicApi
|
||||
*/
|
||||
export function makeStateKey<T = void>(key: string): StateKey<T> {
|
||||
return key as StateKey<T>;
|
||||
@ -76,7 +76,7 @@ export function makeStateKey<T = void>(key: string): StateKey<T> {
|
||||
* boolean, number, string, null and non-class objects will be serialized and deserialzied in a
|
||||
* non-lossy manner.
|
||||
*
|
||||
* @experimental
|
||||
* @publicApi
|
||||
*/
|
||||
@Injectable()
|
||||
export class TransferState {
|
||||
@ -156,7 +156,7 @@ export function initTransferState(doc: Document, appId: string) {
|
||||
* NgModule to install on the client side while using the `TransferState` to transfer state from
|
||||
* server to client.
|
||||
*
|
||||
* @experimental
|
||||
* @publicApi
|
||||
*/
|
||||
@NgModule({
|
||||
providers: [{provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID]}],
|
||||
|
Reference in New Issue
Block a user