Skip to content

Instantly share code, notes, and snippets.

@oleersoy
Created November 7, 2019 04:59
Show Gist options
  • Save oleersoy/7b49bac1da81372af50b18bfa541d115 to your computer and use it in GitHub Desktop.
Save oleersoy/7b49bac1da81372af50b18bfa541d115 to your computer and use it in GitHub Desktop.
import { Component, Output, EventEmitter } from '@angular/core';
@Component({
selector: 'fs-toolbar',
template: `
<mat-toolbar color="primary">
<button mat-icon-button (click)="openMenu.emit()">
<mat-icon>menu</mat-icon>
</button>
<ng-content></ng-content>
</mat-toolbar>
`,
})
export class ToolbarComponent {
@Output() openMenu = new EventEmitter();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment