NgxLibraryAmeeya
This is my test Angular 5 Library built using angular-cli.
Notes
Navigate to https://www.usefuldev.com/blog/post/publishing-a-library-from-an-angular-cli-project
for more details.
Installation
npm install ngx-library-ameeya --save
Import into the App Module
` import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { TestLibraryModule } from 'ngx-cli-library'; import { AppComponent } from './app.component';
@NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, TestLibraryModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } `
Then use it anywhere you like.
<app-test></app-test>