mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(snack-bar): fix 404 for CSS files in examples (#14684)
Fixes a couple of the live examples causing a 404 if the user goes to look at their CSS. Fixes #14682.
This commit is contained in:
committed by
Andrew Seguin
parent
bb419d3fb4
commit
4b96b4fefc
@@ -0,0 +1 @@
|
||||
/** No CSS for this example */
|
||||
@@ -7,9 +7,10 @@ import {MatSnackBar} from '@angular/material';
|
||||
@Component({
|
||||
selector: 'snack-bar-component-example',
|
||||
templateUrl: 'snack-bar-component-example.html',
|
||||
styleUrls: ['snack-bar-component-example.css'],
|
||||
})
|
||||
export class SnackBarComponentExample {
|
||||
constructor(public snackBar: MatSnackBar) {}
|
||||
constructor(private snackBar: MatSnackBar) {}
|
||||
|
||||
openSnackBar() {
|
||||
this.snackBar.openFromComponent(PizzaPartyComponent, {
|
||||
|
||||
@@ -10,7 +10,7 @@ import {MatSnackBar} from '@angular/material';
|
||||
styleUrls: ['snack-bar-overview-example.css'],
|
||||
})
|
||||
export class SnackBarOverviewExample {
|
||||
constructor(public snackBar: MatSnackBar) {}
|
||||
constructor(private snackBar: MatSnackBar) {}
|
||||
|
||||
openSnackBar(message: string, action: string) {
|
||||
this.snackBar.open(message, action, {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
/** No CSS for this example */
|
||||
@@ -11,13 +11,14 @@ import {
|
||||
@Component({
|
||||
selector: 'snack-bar-position-example',
|
||||
templateUrl: 'snack-bar-position-example.html',
|
||||
styleUrls: ['snack-bar-position-example.css'],
|
||||
})
|
||||
export class SnackBarPositionExample {
|
||||
|
||||
horizontalPosition: MatSnackBarHorizontalPosition = 'start';
|
||||
verticalPosition: MatSnackBarVerticalPosition = 'bottom';
|
||||
|
||||
constructor(public snackBar: MatSnackBar) {}
|
||||
constructor(private snackBar: MatSnackBar) {}
|
||||
|
||||
openSnackBar() {
|
||||
this.snackBar.open('Canonball!!', 'End now', {
|
||||
|
||||
Reference in New Issue
Block a user