How to use the angular-playground.initializePlayground function in angular-playground

To help you get started, we’ve selected a few angular-playground examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SoCreate / angular-playground / example-app-angular-cli / src / environments / environment.playground.ts View on Github external
export { PlaygroundModule as AppModule } from 'angular-playground';
import { initializePlayground } from 'angular-playground';

export const environment = {
  production: false
};

initializePlayground('ng-app');
github SoCreate / angular-playground / examples / example-app-webpack / src / main.playground.ts View on Github external
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { PlaygroundModule, initializePlayground } from 'angular-playground';

if (process.env.ENV === 'production') {
  enableProdMode();
}

initializePlayground('my-app');
platformBrowserDynamic().bootstrapModule(PlaygroundModule);

angular-playground

A drop in app module for working on Angular components in isolation (aka Scenario Driven Development).

MIT
Latest version published 1 year ago

Package Health Score

51 / 100
Full package analysis