diff --git a/docs/workshop.md b/docs/workshop.md index 55b45568..dde0a978 100644 --- a/docs/workshop.md +++ b/docs/workshop.md @@ -607,7 +607,7 @@ export default { components: { 'wgu-app-tpl': WguAppTemplate }, - data() { + data () { return { buttonValue: undefined } @@ -616,7 +616,7 @@ export default { /** * Executed once the button value changes */ - buttonValue(value) { + buttonValue (value) { // the button is pressed when its value is 0 const buttonPressed = (value === 0); @@ -687,7 +687,7 @@ export default { + ``` We need to register our modules in `app/WguAppTemplate.vue`. Add this line to the imports: @@ -875,70 +876,70 @@ Let's add some more functionality to the tool. At the moment we show the static @@ -950,6 +951,7 @@ Let's add some more functionality to the tool. At the moment we show the static right: 10px; } + ``` Refresh your application and check the result. When you zoom or pan the map, the values in your new module should change.