Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
header component
@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) {
ionSelect.open();
event.preventDefault();
event.stopImmediatePropagation();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment