xplain-common
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

xplain-common

Installation

To install this library, run:

$ npm install xplain-common --save

Consuming your library

$ npm install xplain-common

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 { SampleModule, HelloWorldModule, AutoCompleteModule } from 'xplain-common';

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

    SampleModule,
    HelloWorldModule,
    AutoCompleteModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

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 -->
<h1>
  {{title}}
</h1>
<sampleComponent></sampleComponent>
<helloWorldComponent></helloWorldComponent>
<xplain-autocomplete [description]="autoCmplDesc" [options]="autoCmplOptions" [(selectedOption)]="selectedOption"></xplain-autocomplete>

License

MIT © María Pilar Pérez Quílez

Package Sidebar

Install

npm i xplain-common

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • pilarpq-xplain