- What are the different parts of a single file component?
- script, template, style
- What are some of the properties available using the options api to define a component?
- data, components, setup, computed, methods, watch, beforeMount, etc.
- What are the different methods of defining props?
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
| // Mixins providing different address formatting functions. | |
| // This allows address display to be consistent across the entire app. | |
| export const AddressMixin = { | |
| methods: { | |
| formatAddress (address) { | |
| let text = '' | |
| if (address !== null) { | |
| if (address.streetAddress) text += address.streetAddress + '<br />' | |
| if (address.city) text += address.city | |
| if (address.state) { |
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
| class Formatting { | |
| private getCountriesQuery(skip: number, limit: number, order: string, searchName: string) { | |
| const Continentscountriescities_Country = Parse.Object.extend('Continentscountriescities_Country'); | |
| const query = new Parse.Query(Continentscountriescities_Country); | |
| query.limit(limit); // limit to at most 10 results | |
| query.skip(skip); // skip the first 10 results | |
| const orders: string[] = order.split(','); | |
| orders.map(o => { | |
| if (o.startsWith('-')) { |