Skip to content

Commit

Permalink
Merge branch 'vnext' into ganastasov/fix-3342
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonoff authored Jun 8, 2023
2 parents 4b44be6 + 3ee5d93 commit 7f75e67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<button igxButton="raised" (click)="snackbar.open()">Send message</button>
<div>
<igx-snackbar #snackbar [autoHide]="false" actionText="Close" (clicked)="close(snackbar)">Message sent</igx-snackbar>
<igx-snackbar #snackbar [autoHide]="false" [outlet]="elem" actionText="Close" (clicked)="close(snackbar)">Message sent</igx-snackbar>
</div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component } from '@angular/core';
import { Component, ElementRef } from '@angular/core';

@Component({
selector: 'app-snackbar-style',
Expand All @@ -7,7 +7,7 @@ import { Component } from '@angular/core';
})
export class SnackbarStyleComponent {

constructor() { }
constructor(public elem: ElementRef) { }

public close(element) {
element.close();
Expand Down

0 comments on commit 7f75e67

Please sign in to comment.