0.0.3 • Published 5 years ago
ngx-mat-demo-pkg v0.0.3
NgxMatDemoPkg
This library was generated with Angular CLI version 7.2.0.
Install
npm install ngx-mat-demo-pkg / npm install ngx-mat-demo-pkg --save
Usage
Importing the library module In order to actually use a component from the library we need to add the library’s module to our App Module.
To do this we make two changes in: src\app\app.module.ts
* Import the NgxMatDemoPkgModule:
import { NgxMatDemoPkgModule } from 'ngx-mat-demo-pkg';
* Add the NgxMatDemoPkgModule to the imports array in our AppModule:
Your app.module.ts file should look like this:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgxMatDemoPkgModule } from 'ngx-mat-demo-pkg';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
NgxMatDemoPkgModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }