1.0.2 • Published 6 years ago
tcm-order-module v1.0.2
TCM Core Library
Installation
To install this library, run:
$ npm install tcm-order-module --save
Consuming your library
vipuldhaigude@gmail npm user - tcmreg password - tcm2619
Once you have published your library to npm, you can import your library in any Angular application by running:
$ npm install tcm-order-module --save
and then from your Angular AppModule
module :
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { OrderModule, OrderHomeComponent } from 'tcm-order-module';
@NgModule({
declarations: [
],
imports: [
OrderModule
],
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 -->
export const MAIN_ROUTES: Route[] = [
{ path: '', redirectTo: 'home', pathMatch: 'full' },
{ path: 'home', component: HomeComponent },
{ path: 'order', component: OrderHomeComponent }
]
Components available in Order Module
- OrderHome component
License
MIT � vipul