(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| <script> | |
| import paymentAPI from '@/api/paymentAPI' | |
| export default { | |
| name: 'PaymentWithCard', | |
| props: ['amountInEuros'], | |
| data() { | |
| return { |
| "use strict"; | |
| /** | |
| * Hypertext Transfer Protocol (HTTP) response status codes. | |
| * @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes} | |
| */ | |
| enum HttpStatusCode { | |
| /** | |
| * The server has received the request headers and the client should proceed to send the request body |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /** | |
| * Converts a string to a "URL-safe" slug. | |
| * Allows for some customization with two optional parameters: | |
| * | |
| * @param {string} Delimiter used. If not specified, defaults to a dash "-" | |
| * @param {array} Adds to the list of non-alphanumeric characters which | |
| * will be converted to the delimiter. The default list includes: | |
| * ['–', '—', '―', '~', '\\', '/', '|', '+', '\'', '‘', '’', ' '] | |
| */ | |
| if (!String.prototype.slugify) { |