File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import { OverlayContainer } from '@angular/cdk/overlay' ;
10
10
import { Component , ElementRef , ViewEncapsulation } from '@angular/core' ;
11
+ import { Location } from '@angular/common' ;
11
12
12
13
13
14
/**
@@ -97,7 +98,10 @@ export class DemoApp {
97
98
98
99
constructor (
99
100
private _element : ElementRef ,
100
- private _overlayContainer : OverlayContainer ) { }
101
+ private _overlayContainer : OverlayContainer ,
102
+ location : Location ) {
103
+ location . subscribe ( console . log ) ;
104
+ }
101
105
102
106
toggleFullscreen ( ) {
103
107
const elem = this . _element . nativeElement . querySelector ( '.demo-content' ) ;
Original file line number Diff line number Diff line change 1
- {{data.message}}
2
-
1
+ < span > {{data.message}}</ span >
3
2
< div class ="mat-simple-snackbar-action " *ngIf ="hasAction ">
4
3
< button mat-button (click) ="action() "> {{data.action}}</ button >
5
4
</ div >
You can’t perform that action at this time.
0 commit comments