diff --git a/1-vue-getting-started/metadata.md b/1-vue-getting-started/metadata.md new file mode 100644 index 0000000..b6eba04 --- /dev/null +++ b/1-vue-getting-started/metadata.md @@ -0,0 +1,111 @@ +# Title + +Getting started with creating web apps with Vue.js + +## Role(s) + +- student +- developer + +## Level + +- intermediate + +## Product(s) + +- Vue.js +- Azure Static Web Apps +- Visual Studio Code + +## Prerequisites + +- HTML/CSS +- Git +- npm +- JavaScript + +## Summary + +Vue.js is a progressive web framework allowing developers to get up and running quickly, with just the addition of a `script` tag. However, Vue.js can also grow with you, and can be used to create large scalable applications. In this module we will explore the core concepts of Vue.js, and how to get started. + +## Learning objectives + +1. Creating an app +1. Working with data + +## Chunk your content into subtasks + +Identify the subtasks of *module title* + +| Subtask | What part of the introduction scenario does this subtask satisfy? | How will you assess it: **Exercise or Knowledge check**? | Which learning objective(s) does this help meet? | Does the subtask have enough learning content to justify an entire unit? If not, which other subtask will you combine it with? | +| ---- | ---- | ---- | ---- | ---- | +| Creating your first app | Creating an app | Exercise | Creating an app | Yes | +| Displaying data | Working with data | Exercise | Working with data | Binding data to attributes | +| Binding data to attributes | Working with data | Exercise | Working with data | Displaying data | + +## Outline the units + +1. **Introduction to Vue.js** + + Vue.js is a progressive web framework. We will see how this can help you creating your applications. + +1. **Getting started with Vue.js** + + We will see how to add Vue.js to an application, and explore the concept of state. + + - Adding Vue.js + - Creating an app + - Adding data + +1. **Exercise - Creating an app with Vue.js** + + Let's create our first Vue.js application + + - Adding Vue.js + - Adding data + - Displaying data + + 1. Clone the starter + 1. Link to library + 1. Create JavaScript file + 1. Import and mount the application + 1. Use the data + 1. Launch the page + +1. **Attribute binding** + + Beyond displaying data on the page, you can also bind data to attributes. We will discuss the various options and syntax available to you. + + - Attribute binding + - v-bind + - : shortcut + - Style and attributes + +1. **Exercise - Attribute binding** + + Let's see how you can bind values to attributes. + + - Add data to the application + - Bind to attributes + + 1. Add properties to the data object + 1. Add HTML + 1. Test the results + 1. Play + +1. **Summary** + + We saw how to create a project using Vue.js, and a couple of the different ways we can interact with data. + +1. **Knowledge check** + + What types of questions will test *learning objective*? *[(Knowledge check guidance)](https://review.docs.microsoft.com/learn-docs/docs/id-guidance-knowledge-check)* + + - Multiple choice + +## Notes + +Note any additional information that may be beneficial to this content such as links, reference material, etc. + +- [Vue.js](https://v3.vuejs.org/) +- [Azure Static Web Apps](https://docs.microsoft.com/azure/static-web-apps/overview) diff --git a/2-dynamic-rendering/metadata.md b/2-dynamic-rendering/metadata.md new file mode 100644 index 0000000..06327b7 --- /dev/null +++ b/2-dynamic-rendering/metadata.md @@ -0,0 +1,102 @@ +# Title + +Dynamic page displays with Vue.js + +## Role(s) + +- student +- developer + +## Level + +- intermediate + +## Product(s) + +- Vue.js +- Azure Static Web Apps +- Visual Studio Code + +## Prerequisites + +- Vue.js +- HTML/CSS +- Git +- npm +- JavaScript + +## Summary + +One of the goals of any web framework is to update the display based on data values. We will explore how you can make your page dynamic based on the values, and display lists of information. + +## Learning objectives + +1. Displaying lists +1. Conditional rendering + +## Chunk your content into subtasks + +Identify the subtasks of *module title* + +| Subtask | What part of the introduction scenario does this subtask satisfy? | How will you assess it: **Exercise or Knowledge check**? | Which learning objective(s) does this help meet? | Does the subtask have enough learning content to justify an entire unit? If not, which other subtask will you combine it with? | +| ---- | ---- | ---- | ---- | ---- | +| Displaying lists of data | Displaying lists | Exercise | Displaying lists | Yes | +| Showing or hiding information | Conditional rendering | Exercise | Conditional rendering | Yes | + +## Outline the units + +1. **Overview of dynamic displays** + + When working with data you need the ability to change the display. We will explore some of the core concepts to make this happen. + +1. **Rendering lists** + + Let's see how we can use a directive to loop through an array of information + + - v-for syntax + - working with keys + +1. **Exercise - Rendering lists** + + Let's display a list of information + + - Displaying list data + + 1. Clone the starter + 1. Display the list + 1. Exploring the code + 1. Test the page + +1. **Conditional rendering** + + There are times when you don't want to show certain information based on the data. We will see how we can control if and when to display values. + + - v-if/v-else + - v-show + +1. **Exercise - Conditional rendering** + + Let's implement conditional rendering + + - v-if/v-else + - v-show + + 1. Add the code + 1. Test the display + +1. **Summary** + + We saw how to control the display with data in Vue.js + +1. **Knowledge check** + + What types of questions will test *learning objective*? *[(Knowledge check guidance)](https://review.docs.microsoft.com/learn-docs/docs/id-guidance-knowledge-check)* + + - Multiple choice + +## Notes + +Note any additional information that may be beneficial to this content such as links, reference material, etc. + +- [Vue.js](https://v3.vuejs.org/) +- [Azure Static Web Apps](https://docs.microsoft.com/azure/static-web-apps/overview) diff --git a/2-dynamic-rendering/quiz.md b/2-dynamic-rendering/quiz.md index 8914711..3efb5d0 100644 --- a/2-dynamic-rendering/quiz.md +++ b/2-dynamic-rendering/quiz.md @@ -2,16 +2,31 @@ Choose the best response for each of the questions below. Then select **Check yo ## quiz title: Check your knowledge -## Multiple Choice -Which of the following statements is accurate with respect to the way Vue enables list rendering most efficiently? +What directive do you use to iterate through a list of items? -()`v-if` should be used to cycle through a list of array items in the browser.{{Incorrect. `v-for` is the simplest way to cycle through a list of array objects. Add the `v-for` directive to an `
  • ` tag (rather than the `