How to use the angular-playground.PlaygroundModule.configure 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 / examples / cli-example / src / main.playground.ts View on Github external
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { PlaygroundModule } from 'angular-playground';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ServiceWorkerModule } from '@angular/service-worker';
import { environment } from './environments/environment';
import { enableProdMode } from '@angular/core';

enableProdMode();

PlaygroundModule
  .configure({
    selector: 'app-root',
    overlay: true,
    modules: [
      BrowserAnimationsModule,
      environment.production ? ServiceWorkerModule.register('/ngsw-worker.js') : []
    ]
  });

platformBrowserDynamic().bootstrapModule(PlaygroundModule)
  .catch(err => console.error(err));
github SoCreate / angular-playground / packages / angular-playground / schematics / src / ng-add / files / src / main.playground.ts View on Github external
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { PlaygroundModule } from 'angular-playground';

PlaygroundModule
  .configure({
    selector: 'app-root',
    overlay: false,
    modules: []
  });

platformBrowserDynamic().bootstrapModule(PlaygroundModule);
github DanWahlin / Angular-JumpStart / src / main.playground.ts View on Github external
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { PlaygroundModule } from 'angular-playground';

PlaygroundModule
  .configure({
      selector: 'cm-app-component',
      overlay: false,
      modules: []
  });

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