feat(platform browser): introduce Meta service (#12322)
This commit is contained in:

committed by
Victor Berchet

parent
5c6ec20c7e
commit
72361fb68f
@ -58,6 +58,32 @@ export declare class HammerGestureConfig {
|
||||
buildHammer(element: HTMLElement): HammerInstance;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class Meta {
|
||||
constructor(_dom: DomAdapter);
|
||||
addTag(tag: MetaDefinition, forceCreation?: boolean): HTMLMetaElement;
|
||||
addTags(tags: MetaDefinition[], forceCreation?: boolean): HTMLMetaElement[];
|
||||
getTag(attrSelector: string): HTMLMetaElement;
|
||||
getTags(attrSelector: string): HTMLMetaElement[];
|
||||
removeTag(attrSelector: string): void;
|
||||
removeTagElement(meta: HTMLMetaElement): void;
|
||||
updateTag(tag: MetaDefinition, selector?: string): HTMLMetaElement;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export interface MetaDefinition {
|
||||
charset?: string;
|
||||
content?: string;
|
||||
httpEquiv?: string;
|
||||
id?: string;
|
||||
itemprop?: string;
|
||||
name?: string;
|
||||
property?: string;
|
||||
scheme?: string;
|
||||
url?: string;
|
||||
[prop: string]: string;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare class NgProbeToken {
|
||||
name: string;
|
||||
|
Reference in New Issue
Block a user