diff --git a/README.md b/README.md
index 8d1afb2..6c7073c 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,8 @@
## Course Take aways:
+- You missed it in the vuex course but they started using `import Datepicker from 'vuejs-datepicker'` in the EventCreate component.
+
- Installation of [NProgress](https://github.com/rstacruz/nprogress) to create a better experience for a user when they are interacting with our application.
- Axios Interceptors
- Not optimal for multiple API calls
@@ -37,6 +39,12 @@ beforeRouteLeave(routeTo, routeFrom, next) {
}
```
+### Base Form elements
+
+- Look up `vue-multiselect` for when you want to use a select field and the options have objects in them.
+- `v-on="$listeners"` means that this element inherits the listners of the parent component
+- `v-bind="$attrs"` won't work for inheriting class and style attributes
+
### Global Route Gaurds & Per Route Gaurds
Global Route Gaurds allow us to add hooks that run whenever nagigation is triggered. These gaurds are called on the `router` object. We need to set the `router` object to a contant.
@@ -87,6 +95,10 @@ const router = new Router({
Since all the API action calls are occuring in the router lifecycle hooks at this time. You can actually remove all vuex code from the component. This could make your code simpler and easier to maintain. You will need to ensure that the actions in your vuex store are returning the objects you are working with however to ensure this works.
+_NOTE:_ Since `beforeEnter` is only called when the component is created it's use with a component that does paginatation will not work. The `fetchEvent` wouldn't be called.
+
+_NOTE2:_ Vue Router may get another per-route guard called beforeResolve which called on Create and Update. If it is available it would be a more elegant solution to our pagination problem.
+
## Following along?
We encourage you to follow the course on Vue Mastery, and code along with us. This course has tags representing the start and finish of each level, just in case you get stuck. Here's the start and ending code of each lesson, if you'd like to download them.
diff --git a/db.json b/db.json
index a9a98e8..87a67cc 100644
--- a/db.json
+++ b/db.json
@@ -267,6 +267,24 @@
"date": "",
"time": "",
"attendees": []
+ },
+ {
+ "id": 7184295,
+ "user": {
+ "id": "abc123",
+ "name": "Adam"
+ },
+ "category": "nature",
+ "organizer": {
+ "id": "abc123",
+ "name": "Adam"
+ },
+ "title": "Here we go again",
+ "description": "",
+ "location": "",
+ "date": "",
+ "time": "",
+ "attendees": []
}
]
}
\ No newline at end of file
diff --git a/src/components/BaseButton.vue b/src/components/BaseButton.vue
new file mode 100644
index 0000000..0bdfb92
--- /dev/null
+++ b/src/components/BaseButton.vue
@@ -0,0 +1,86 @@
+
+