Created
December 4, 2018 21:28
-
-
Save oleersoy/3ea66728f6447d9a52f9656874372876 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