@4geit/ngx-marketplace-header-component
header for marketplace layout
Installation
- A recommended way to install @4geit/ngx-marketplace-header-component is through npm package manager using the following command:
npm i @4geit/ngx-marketplace-header-component --save
Or use yarn
using the following command:
yarn add @4geit/ngx-marketplace-header-component
- You need to import the
NgxMarketplaceHeaderComponent
component within the module you want it to be. For instanceapp.module.ts
as follows:
import { NgxMarketplaceHeaderComponent } from '@4geit/ngx-marketplace-header-component';
And you also need to add the NgxMarketplaceHeaderComponent
component with the @NgModule
decorator as part of the declarations
list.
@NgModule({
// ...
declarations: [
// ...
NgxMarketplaceHeaderComponent,
// ...
],
// ...
})
export class AppModule { }
- You can also attach the component to a route in your routing setup. To do so, you need to import the
NgxMarketplaceHeaderComponent
component in the routing file you want to use it. For instanceapp-routing.module.ts
as follows:
import { NgxMarketplaceHeaderComponent } from '@4geit/ngx-marketplace-header-component';
And you also need to add the NgxMarketplaceHeaderComponent
component within the list of routes
as follows:
const routes: Routes = [
// ...
{ path: '**', component: NgxMarketplaceHeaderComponent }
// ...
];