New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ng-playground

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-playground

[![Build Status](https://travis-ci.org/kevinmerckx/ng-playground.svg?branch=develop)](https://travis-ci.org/kevinmerckx/ng-playground) [![Greenkeeper badge](https://badges.greenkeeper.io/kevinmerckx/ng-playground.svg)](https://greenkeeper.io/) [![npm vers

latest
Source
npmnpm
Version
3.0.1
Version published
Maintainers
1
Created
Source

NG Playground

Build Status Greenkeeper badge npm version

NG Playground enables developers to have a playground: easy setup to rapidly develop components/directives/pipes etc.

npm install --save-dev ng-playground
ng generate application playground

In the app.module.ts do as follows:

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { PlaygroundModule, PlaygroundComponent } from 'ng-playground';
import {
  CaseAComponent,
  CaseBComponent,
  CaseCComponent
} from './cases';
import { CustomMenuAreaComponent } from './custom-menu-area/custom-menu-area.component';

@NgModule({
  declarations: [
    CaseAComponent,
    CaseBComponent,
    CaseCComponent,
    CustomMenuAreaComponent
  ],
  entryComponents: [
    CaseAComponent,
    CaseBComponent,
    CaseCComponent,
    CustomMenuAreaComponent
  ],
  imports: [
    BrowserModule,
    PlaygroundModule.configure({
      routes: [
        { title: 'Case A', component: CaseAComponent },
        { title: 'Parent', children: [ … ]},
        { title: 'Case C', component: CaseCComponent }
      ],
      customMenuComponent: CustomMenuAreaComponent
    })
  ],
  bootstrap: [PlaygroundComponent]
})
export class AppModule { }

In the index.html:

<body>
  <pg-playground></pg-playground>
</body>

In angular.json, add the styles:

"styles": [
  "node_modules/ng-playground/ng-playground.css"
]

Keywords

angular

FAQs

Package last updated on 27 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts