SoCreate / angular-playground

A drop in app module for working on Angular components in isolation (Angular version 2.x and above).
http://www.angularplayground.it
MIT License
458 stars 62 forks source link

Inflexible Assignment to <title> Element #306

Closed willhartman closed 2 years ago

willhartman commented 2 years ago

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

https://github.com/SoCreate/angular-playground/blob/fa684825a28321cebe08cbac1ebf43bae43e9785/projects/playground/src/lib/lib/initialize-playground.ts#L3

https://github.com/SoCreate/angular-playground/blob/62352c22791c19d480bdedefae558ee6c52e89b5/projects/playground/src/lib/lib/initialize-playground.ts#L2

https://github.com/SoCreate/angular-playground/blob/62352c22791c19d480bdedefae558ee6c52e89b5/projects/playground/src/lib/core/playground.module.ts#L31

Resolution

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