22 lines
472 B
TypeScript
22 lines
472 B
TypeScript
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-navbar[title]',
|
|
templateUrl: './navbar.component.html',
|
|
styleUrls: ['./navbar.component.scss']
|
|
})
|
|
export class NavbarComponent implements OnInit {
|
|
@Input() title: string = 'Название не задано'
|
|
@Output() backEvent = new EventEmitter<null>();
|
|
|
|
constructor() { }
|
|
|
|
ngOnInit(): void {
|
|
}
|
|
|
|
back() {
|
|
this.backEvent.emit(null)
|
|
}
|
|
|
|
}
|