NgDocPlaygroundDemoComponent
One demo of a playground: it creates the generated playground class of its selector (or pipe), passes it the form's values and shows the code of the current state.
- Decorators
@Component - Selectors
ng-doc-playground-demo - Generic types
T- Implements
OnChanges OnDestroy
DeclarationTypeScript
@Component ({ … })
export class NgDocPlaygroundDemoComponent <T extends NgDocPlaygroundProperties = NgDocPlaygroundProperties >
implements OnChanges , OnDestroy { … }Members
Properties13 | |||||||
code: | — | ||||||
configuration: | The playground configuration, extended by the action's options. | ||||||
demoOutlet: | Where the playground class is created. | ||||||
destroyRef: | — | ||||||
expanded: | Whether the code of the demo is shown. | ||||||
form: | The values of the inputs and content slots. | ||||||
id: | The name of the playground in the page configuration. | ||||||
injector: | — | ||||||
pipeName: | The name of the pipe, when the target is a pipe. | ||||||
playgroundDemo?: typeof | The generated playground class of this demo's selector or pipe. | ||||||
properties: | The inputs of the target. | ||||||
recreateDemo: | Whether the demo is created again each time a value changes. | ||||||
selector: | The selector of the target this demo renders. | ||||||
Methods2 | |||||||
(…): Promise<void> | — | ||||||
Signature Parameters
Returns Promise<void> | |||||||
(): void | — | ||||||
Signature Returns void | |||||||
No members match.