Created
December 4, 2018 21:32
-
-
Save oleersoy/8a6733f59cca565ee026d1b1c0f4ae9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, Output, EventEmitter } from '@angular/core'; | |
@Component({ | |
selector: 'my-toolbar', | |
template: ` | |
<mat-toolbar color="primary"> | |
<button mat-icon-button (click)="menu.emit()"> | |
<mat-icon>menu</mat-icon> | |
</button> | |
<ng-content></ng-content> | |
</mat-toolbar> | |
`, | |
}) | |
export class ToolbarComponent { | |
@Output() menu = new EventEmitter(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment