apps-selector

To install this library, run:

Usage no npm install needed!

<script type="module">
  import appsSelector from 'https://cdn.skypack.dev/apps-selector';
</script>

README

@redwagon/apps

Installation

To install this library, run:

$ yarn add @redwagon/apps --save

Consuming your library

Once you have published your library to npm, you can import your library in any Angular application by running:

$ yarn add @redwagon/apps

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import your library
import { RwAppsModule } from '@redwagon/apps';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify your library as an import
    RwAppsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Include Material Style in your style file:

@import '~@angular/material/prebuilt-themes/indigo-pink.css';

Importing HammerJS for better experience with Angular Material modifiying the file: src/polyfills.ts:

import 'hammerjs/hammer';

Once your library is imported, you can use its components, directives and pipes in your Angular application:

<!-- You can now use your library component in app.component.html -->
<rw-apps [claimsID]="claimsID"></rw-apps>

Building library

To generate all *.js, *.d.ts and *.metadata.json files:

$ yarn build.ngm

Publish library

To publish library run this command:

$ yarn publish.lib

License

MIT © RedWagonInc.