1.0.2 • Published 6 years ago
cap-page-header v1.0.2
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" }
}