How to test your component in the playground
Minimum Requirements
npm install --save-dev angular-playgroundimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { PlaygroundModule } from 'angular-playground';
PlaygroundModule
.configure({
selector: 'app-root',
overlay: false,
modules: []
});
platformBrowserDynamic().bootstrapModule(PlaygroundModule)
.catch(err => console.log(err));Create a new component sandbox
File: label.component.sandbox.ts
Run the playground
Was this helpful?