npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@wiwo/widget-angular8

v0.8.0

Published

This is an example project showing how to install and use the `@wiwo/widget-angular8` library to embed a [Widget Works](https://www.widgetworks.com.au) Widget into an Angular 8 project.

Downloads

6

Readme

WiwoWidget

This is an example project showing how to install and use the @wiwo/widget-angular8 library to embed a Widget Works Widget into an Angular 8 project.

This library was generated with Angular CLI version 8.2.14.


Dependencies

$ npm install -S @wiwo/widget-angular8

The package.json should now include this library as a dependency:

// package.json
{
  "dependencies": {
    "@wiwo/widget-angular8": "^v..."
  }
}

Register module

In your application app.module.ts import and register the WiwoWidgetModule

// app.module.ts

// 1. import `WiwoWidgetModule`
import { WiwoWidgetModule } from '@wiwo/widget-angular8';

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    // ...
    
    // 2. Register the module as an import
    WiwoWidgetModule,
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Usage

You can now use the wiwo-widget-input and wiwo-widget components in your application.

The WiwoWidgetModule provides the following components:

  • wiwo-widget-input exposes the Widget as a ControlValueAccessor and accepts a formControl or formControlName prop

The licenseId will be provided to you later.

<wiwo-widget-input
  licenseId="required string; the Widget license to embed in the application"
  [formControl]="optional; the FormControl<string> instance that will receive the JSON-encoded string of the Widget state"
  formControlName="optional; the form control name for the associated FormControl<string>"
></wiwo-widget-input>

If formControl or formControlName is given then that form control will be updated with the current state of the Widget as the user interacts with the Widget instance.

  • wiwo-widget embeds the Widget in the page
<wiwo-widget
  licenseId="required string; the Widget license to embed in the application"
  [value]="optional string; the JSON-encoded string representing the Widget state to restore on startup; if not provided the Widget will initialise with its default values"
></wiwo-widget>