1.1.2 • Published 8 years ago
@4geit/ngx-toolbar-component v1.1.2
@4geit/ngx-toolbar-component 
add a toolbar using MdToolbar and provide a set of parameters to configure
Installation
- A recommended way to install @4geit/ngx-toolbar-component is through npm package manager using the following command:
npm i @4geit/ngx-toolbar-component --saveOr use yarn using the following command:
yarn add @4geit/ngx-toolbar-component- You need to import the
NgxToolbarComponentcomponent within the module you want it to be. For instanceapp.module.tsas follows:
import { NgxToolbarComponent } from '@4geit/ngx-toolbar-component';And you also need to add the NgxToolbarComponent component with the @NgModule decorator as part of the declarations list.
@NgModule({
// ...
declarations: [
// ...
NgxToolbarComponent,
// ...
],
// ...
})
export class AppModule { }- You can also attach the component to a route in your routing setup. To do so, you need to import the
NgxToolbarComponentcomponent in the routing file you want to use it. For instanceapp-routing.module.tsas follows:
import { NgxToolbarComponent } from '@4geit/ngx-toolbar-component';And you also need to add the NgxToolbarComponent component within the list of routes as follows:
const routes: Routes = [
// ...
{ path: '**', component: NgxToolbarComponent }
// ...
];