SoCreate/angular-playground

Inflexible Assignment to <title> Element

Closed this issue · 0 comments

Current Behaviour

The initializePlayground method sets the <title> element text to Playground.

Currently this Playground text cannot be configured.

Suggested Behaviour

Library consumers can configure the text that is applied to the <title> element.

Relevant Code

document.getElementsByTagName('title')[0].innerHTML = 'Playground';

export const initializePlayground = (elementNameToReplace?: string) => {

initializePlayground(configuration.selector);

Resolution

I will raise a PR that enables configuration of the <title> text.