-
Notifications
You must be signed in to change notification settings - Fork 24
Vue Composition API: Getters
Mike Lyttle edited this page May 11, 2023
·
3 revisions
slideIndex = 0; get isFirstSlide(): boolean {
return this.slideIndex === 0;
}import { computed, ref } from "vue";const slideIndex = ref(0);const isFirstSlide = computed(() => slideIndex.value === 0);- Since getters are no longer accessed with the
this.prefix, be sure to verify that no function parameters share the same names, as a conflict can lead to cryptic bugs.
-
Developer Standard and Processes
-
Workstation Setup
-
IDE Configuration
-
Application Config
-
RedHat SSO Authorization Server
-
Known Issues