You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
667 B
TypeScript
28 lines
667 B
TypeScript
|
6 years ago
|
import { Component, OnInit, Input } from '@angular/core';
|
||
|
|
import { CommonService } from '../../services/common/common.service';
|
||
|
|
|
||
|
|
@Component({
|
||
|
|
selector: 'app-generic-header',
|
||
|
|
templateUrl: './generic-header.component.html',
|
||
|
|
styleUrls: ['./generic-header.component.scss'],
|
||
|
|
})
|
||
|
|
export class GenericHeaderComponent implements OnInit {
|
||
|
|
@Input() userImage = '';
|
||
|
|
@Input() showImage = false;
|
||
|
|
@Input() showMenu = false;
|
||
|
|
@Input() showBack = false;
|
||
|
|
@Input() navigate = true;
|
||
|
|
@Input() headerText = '';
|
||
|
|
@Input() backLink: string;
|
||
|
|
|
||
|
|
|
||
|
|
constructor(public common: CommonService) { }
|
||
|
|
|
||
|
|
ngOnInit() {}
|
||
|
|
|
||
|
|
openProfilePage() {
|
||
|
|
this.common.openEditProfile();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|