Last active
June 12, 2020 16:09
-
-
Save Dornhoth/0e5de1606332fb18b0f03d87908dbb60 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| {{text}} |
This file contains hidden or 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
| $color-red: #E23636; | |
| $spacing: 16px; | |
| :host { | |
| border-radius: 3px; | |
| border: $color-red 1px solid; | |
| color: $color-red; | |
| padding: $spacing; | |
| margin: $spacing; | |
| display: block; | |
| } |
This file contains hidden or 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, Input } from '@angular/core'; | |
| @Component({ | |
| selector: 'app-error-card', | |
| templateUrl: './error-card.component.html', | |
| styleUrls: ['./error-card.component.scss'] | |
| }) | |
| export class ErrorCardComponent { | |
| @Input() text = 'An unexpected error occurred.'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment