Skip to content

Instantly share code, notes, and snippets.

Created April 1, 2021 07:06
What would you like to do?
header component
selector: 'app-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
export class HeaderComponent implements OnInit {
@Input() backUrl: string;
@Input() backText: string;
@Input() title: string;
@Input() categories: string[] = [];
constructor(private navCtrl: NavController) {}
ngOnInit() {}
onNavigateBack() {
this.navCtrl.navigateForward(this.backUrl, { animated: false });
onSelectTags(event: Event, ionSelect: IonSelect) {;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment