cap-page-header
v1.0.2
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.3.
Downloads
12
Readme
CapPageHeader
This library was generated with Angular CLI version 8.0.3.
It is a re-usable component for the page titles in the CAP project.
Code scaffolding
Import "CapPageHeaderModule" in the Module file
import { NgModule } from '@angular/core'; import { CapPageHeaderModule } from 'cap-page-header';
@NgModule({ declarations: [ ], imports: [ CapPageHeaderModule ], providers: [], bootstrap: [ ] }) export class AppModule { }
add html selector in the Html template file
<lib-cap-page-header [page]="headerData">
add object in the in the Component file
import { Component } from '@angular/core';
@Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent {
title = 'ca-page-application';
headerData ={ title:"some title", src:"image url", description:"description" }
}