Introduction

The successful incorporation of information technology into teaching has been a prevalent topic in the field of teacher education for many years. As pre-service teachers occupy a dual role as students and future teachers, they require digital competence and teaching competence to facilitate active integration into the digital society (Instefjord and Munthe, 2017). Lim (2023) emphasized that pre-service teacher education was a crucial factor in developing the competence of future teachers. As a vital resource for the development of future teachers, the digital teaching proficiency of pre-service teachers plays a vital role in determining the quality of future education (Yan et al., 2018). Despite having a favorable impression of digital competence, pre-service teachers may not have acquired sufficient proficiency to enhance the teaching process (Tárraga-Mínguez et al., 2021). Therefore, sustainable development of digital teaching competence for pre-service teachers is crucial.

INTEF (2017) defined digital teaching competence as “a set of competencies that teachers in the 21st century must acquire to improve the efficiency of educational practice and ensure continuous professional development”. Enhancing teachers’ digital teaching competence contributed to the digital transformation of schools (Hämäläinen et al., 2021), the development of students’ digital competence (Esteve-Mon et al., 2020; Llopis et al., 2021), and ongoing professional skill development for teachers (Cazco et al., 2016). However, studies have found that despite their digital competence, pre-service teachers may still lack the ability to implement digital tools effectively in the teaching process.

The sustainable development of pre-service teachers’ digital teaching competence should be promoted; it is essential to have a thorough understanding of the factors that influence the deployment of training programs. Current research indicates that various factors, broadly classified as external environmental factors and teachers’ characteristics, influence the digital teaching competence of teachers (Tezci, 2011). The influencing factors of the external environment encompassed school climate and support (Demiraslan and Usluel, 2008), and facilitating conditions (Teo et al., 2008, 2009). In contrast, personal factors included technology attitudes (Gurer, 2021), technology competencies (Tondeur et al., 2018), data literacy (Lin et al., 2022), and technology ethics (Guillén-Gámez et al., 2021), among others. Researchers have conducted limited studies on how data literacy and technology ethics affect the pre-service teacher’s digital teaching competence, with technology attitudes and technology operations variables often used to investigate the relationships with digital teaching competence. Hence, this study regards technology attitudes, technology operations, technology ethics, and data literacy as variables that potentially affect the pre-service teacher’s digital teaching competence.

In modern education, data is gaining importance as a tool to enable teachers to make informed decisions, and it has become crucial in preparing future educators (Reisoğlu and Çebi, 2020). Nevertheless, the ability to analyze data alone is insufficient to improve instruction and meet students’ needs (Shepard et al., 2018), and teachers must possess data literacy, which would allow them to make informed decisions based on a deep understanding of data, promptly diagnose the quality of teaching, and adjust both the student’s learning and teaching methodologies as needed (Ball et al., 2008). A growing body of research suggested the crucial role of data literacy in successfully integrating information and communication technology into the instruction of pre-service teachers (McDowall et al., 2021). Only the study conducted by Lin et al. (2022) substantiated that teachers’ data literacy had a significant impact on the digital teaching competence of teachers. Further research is needed to establish more evidence and explore the relationship between data literacy and the digital teaching competence of future teachers to guide teacher training programs better. Additionally, little attention has been given to training teachers on data literacy during teacher training (Mandinach et al., 2015). Previous research highlighted technology attitudes and operations as variables that influence the data literacy of pre-service teachers (Miller-Bains et al., 2022). The emergence of a new generation of AI assistants, such as ChatGPT, has heightened attention to a range of ethical concerns and their expanding impact over time. Teachers must adhere to ethical standards when utilizing digital technology to promote the healthy development of their students. No studies have explored the impact of technology ethics as a variable affecting data literacy. Thus, this study includes technology attitudes, technology operations, and technology ethics as variables that could influence the data literacy of pre-service teachers.

To sum up, this study has identified technology attitudes, technology operations, technology ethics, and data literacy as variables that potentially influence the pre-service teacher’s digital teaching competence. Additionally, researchers selected technology attitudes, operations, and ethics as variables that could impact pre-service teachers’ data literacy. Data literacy may be a mediating factor in this study. As such, this paper presents and explores the results of the analysis of mediating variables in the data analysis process.

Literature review and hypotheses development

Technology attitudes

In this study, technology attitudes refer to teachers’ general support or opposition toward using digital technologies in the classroom. Attitudes had three components: cognitive, emotional, and behavioral (Smith, 1968). Firstly, Mandinach and Gummer (2013) found that pre-service teachers often need to be aware of the data’s significance and potential benefits; they could not use it effectively (Merk et al., 2020). Consequently, cultivating positive technology attitudes could positively impact data literacy (Dunn et al., 2013). Secondly, previous research demonstrated a clear link between technology attitudes and operations (Scherer et al., 2018; Teo et al., 2008, 2009). Specifically, Teo et al. (2008, 2009) found that the success of technology implementation in educational programs was highly dependent on the attitude and support of teachers and that technology attitudes could significantly affect teachers’ ICT skills development (Wang and Zhao, 2021), thus, it could be largely concluded that having positive technology attitudes can enhance technology operations outcomes. Thirdly, despite growing concerns about the ethical implications of digital competency development, pre-service teachers received limited moral training in this era. As a result, researchers emphasized the importance of attending to ethical issues related to technology use (Ki and Ahn, 2006). Based on these findings, it seems reasonable to suggest that technology attitudes can contribute to more technology ethics practices. Lastly, Han et al. (2017) demonstrated that technology attitudes could hinder the integration of ICT in the classroom (Sang et al., 2011). Further, Valtonen et al. (2017) found that attitudes could influence teaching behavior and the use of digital technologies during instruction (Aslan and Zhu, 2017). Moreover, other research has indicated that there may not be a significant relationship between teachers’ technology attitudes, as reported by Ndibalema (2014), and their level of digital teaching competence. These findings suggest that while technology attitudes play a role in digital teaching competence, the relationship between these factors may not always be straightforward.

This study builds upon previous research and explores the relationship between technology attitudes and data literacy, technology operations, technology ethics, and digital teaching competence. Furthermore, our examination of the relationship between technology attitudes, ethics, and operations presents a novel contribution to the field.

Technology operations

The present study introduces the concept of technology operations, which encompasses pre-service teachers’ ability to use ICT hardware and software tools effectively to enhance the teaching process. As Goktas et al. (2009) noted, teachers must possess sufficient technology competence in education. Despite extensive efforts by many countries and international organizations to enhance teachers’ technology competence, various studies demonstrate that the level of technical competencies among teachers remains unsatisfactory (Gudmundsdottir and Hatlevik, 2018; Røkenes and Krumsvik, 2014; Valtonen et al., 2015). On the one hand, proficiency in hardware and software tools is critical in maximizing the value of teaching data. Individuals with solid technology operations were generally more adept at data literacy (Ng, 2012). One could propose that technology operations positively impact data literacy outcomes. On the other hand, Garcia et al. (2013) and Cazco et al. (2016) found that teachers who prioritize the development of software and hardware operations skills tended to have a moderately high level of digital teaching competence. Furthermore, Ghavifekr and Rosdy (2015) suggested incorporating digital tools could enhance teaching efficiency (Hatlevik and Hatlevik, 2018). However, other studies highlighted the importance of additional factors in promoting digital teaching competence beyond technology operations alone (Mouza et al., 2014; Cabero-Almenara et al., 2021a; Sánchez-Caballé and Esteve-Mon, 2022). In light of these findings, it is reasonable to infer that technology operations can positively impact digital teaching competence but may not be the only determining factor.

In short, previous studies have primarily relied on intuitive and experiential perspectives to conclude that technology operations significantly impact data literacy and digital teaching competence. Still, few empirical studies have yet to explore this impact. This article provides empirical evidence to supplement these conclusions.

Technology ethics

In this research, technology ethics (TE) is defined as a set of ethical guidelines and legal standards that instructors are expected to follow when using various technological tools in the classroom for teaching and learning purposes. In recent years, the ethical concerns surrounding educational technology have come to the forefront of discussions in the field (Baum, 2005). Moreover, new ethical issues are emerging with integrating artificial intelligence technology, such as ChatGPT, into the educational landscape. The unethical use of technology in education was a significant problem noted by Ki and Ahn (2006). Ethics was one of the four factors identified in the TRACK depth scale, alongside design, exertion, ethics, and proficiency (Kabakci Yurdakul and Çoklar, 2014). In light of the growing importance of ethical considerations in educational technology, future teacher training should prioritize the development of moral competence (Mâță et al., 2020). Teachers will play a crucial role in teaching students not only how to maximize the value of data to support their learning but also how to handle data privacy and security concerns the future (Krutka et al., 2019; Milton et al., 2021; Vartiainen et al., 2022). Technology ethics could impact all competencies that students acquire through the teaching-learning process (Novella-García and Cloquell-Lozano, 2021), affect the handling and manipulation of data (Nordkvelle and Olson, 2005), and significantly predict pre-service teachers’ problem-solving ability (Ersoy et al., 2016). In light of this, there is reason to believe that technology ethics may positively impact data literacy and digital teaching competence.

In conclusion, previous research has yet to explore the importance of ethics in teacher professional development. As technologies such as artificial intelligence pose challenges to human society, there is an increasing need for awareness, knowledge, and behavior related to ethics. Deng and Zhang (2023) developed and validated the TPCEK scale based on TPACK, which was used to evaluate pre-service teachers. This study is one of the few that explores the relationship between technology ethics and data literacy and the relationship between technology ethics and digital teaching competence.

Data literacy

The concept of data literacy was first proposed by Gilster (1997). Mandinach and Gummer (2013) defined data literacy as understanding and applying data in making informed decisions. Lin et al. (2022) proposed four critical steps to the data processing cycle: data collection, data analysis, data evaluation, and data application. According to Kippers et al. (2018), data literacy entailed setting a clear objective, collecting relevant data, analyzing it effectively, interpreting the results, and making informed decisions. Gisbert-Cervera et al. (2022) noted that pre-service teachers’ data literacy should prioritize during university training. Moreover, a lack of data literacy early in an instructor’s career could pose a significant obstacle to achieving a high level of digital teaching competence (Davis and Jones, 2022; Halverson, 2010). Data-driven teaching has revolutionized classroom practice and optimized student learning (Miller-Bains et al., 2022). Nevertheless, empirical studies on relevant research still need to be extensive, with more theoretical assumptions (Cowie and Cooper, 2017). Given these studies, it is acceptable to assume that data literacy can positively affect digital teaching competence. Additionally, previous studies identified a correlation between technology attitudes and data literacy (Datnow and Hubbard, 2016). Ethics and morality were recognized as fundamental principles in using digital media (Ata and Yıldırım, 2019). Technology operations have also been seen as a variable significantly predicting data literacy; however, evidence was limited (Ng, 2012). Thus, this study aims to investigate the mediating effect of data literacy.

Research model

This study investigates the factors that impact digital teaching competence based on a literature review. Furthermore, the study explores the mediating effect of data literacy in the relationship between technology attitude, technology operations, technology ethics, and digital teaching competence. In summary, the research model (Fig. 1) depicts the testing of ten hypotheses in this study. The figure illustrates the direct impact of technology attitudes, technology operations, technology ethics, and data literacy on digital teaching competence and the indirect influence of data literacy on digital teaching competence.

Fig. 1: The proposed research model.
figure 1

Hypothesis 1: Technology Attitudes have a positive effect on Data Literacy. Hypothesis 2: Technology Attitudes have a positive effect on Technology Operations. Hypothesis 3: Technology Attitudes have a positive effect on Technology Ethics. Hypothesis 4: Technology Attitudes have a positive effect on Digital Teaching Competence. Hypothesis 5: Technology Operations have a positive effect on Data Literacy. Hypothesis 6: Technology Operations have a positive effect on Digital Teaching Competence. Hypothesis 7: Technology Ethics has a positive effect on Data Literacy. Hypothesis 8: Technology Ethics has a positive effect on Digital Teaching Competence. Hypothesis 9: Data Literacy has a positive effect on Digital Teaching Competence. Hypothesis 10: Data Literacy acts as a mediator between technology attitudes, technology operations, technology ethics, and Digital Teaching Competence.

Methods

Participants

Between 2021 and 2022, this study disseminated a digital teaching competence questionnaire to pre-service teachers at a Normal University in Hangzhou, Zhejiang Province, China. We used the online questionnaire platform, Wenjuanxing (https://www.wjx.cn/), to collect the data resulting in 244 valid responses. We informed the participants that the data would only be used for research purposes and that no personally identifiable information would be disclosed.

A total of 244 pre-service teachers participated in this investigation, with 130 participants in 2021 and 114 participants in 2022. Both exploratory and confirmatory factor analyses were utilized with distinct data sets to ensure the robustness of the findings. Specifically, 130 data points were used for exploratory factor analysis (EFA) in 2021. Subsequently, after validating the instrument, 114 data points from 2022 were selected for confirmatory factor analysis (CFA) to develop structural equation models. Table 1 summarizes the demographic details of the 244 participants included in this investigation.

Table 1 Demographic profile of respondents.

Instrument

The instrument was composed of two sections. The first section requested demographic information, including gender, grade level, major, and whether you have taken or are taking the Fundamentals of Computing course or a related course. The second section comprises five dimensions: Technology Attitudes, Technology Operations, Technology Ethics, Data Literacy, and Digital Teaching competence. The items in several scales had been slightly modified. The exploratory factor analysis (EFA) identified 19 items across these dimensions, including Technology Attitudes (3 items), Technology Operations (3 items), Technology Ethics (3 items), Data Literacy (5 items), and Digital Teaching competence (5 items). Each item was evaluated by a five-point Likert scale, ranging from 1 = “strongly disagree” to 5 = “strongly agree.” Table 2 provides a detailed discrimination of the rankings and their relevant citations.

Table 2 Sources of indicators.

Results

The data collected were analyzed using SPSS version 26 and SmartPLS version 3. SPSS version 26 was used to analyze the data for exploratory factor analysis and demographic analysis, which identified five dimensions: Technology Attitudes, Technology Operations, Technology Ethics, Data Literacy, and Digital Teaching Competence. Subsequently, SmartPLS was used to conduct a confirmatory factor analysis, evaluate the measurement model, test the suggested structural equation model, and explore the mediating influences in the structural equation model.

Exploratory factor analysis

To explore the dimensional composition of the questionnaire, this study conducted an exploratory factor analysis on 130 data from 2021. Factor analysis was utilized to determine the linkage between items under the premise that such a link exists. The Kaiser-Meyer-Olkin (KMO) and Bartlett’s test of sphericity were used to assess whether there were sufficient data for the factor analysis. The survey findings yielded a KMO test value of 0.929, indicating good data for factor analysis.

Exploratory factor analysis was subsequently conducted. The results are presented in Table 3, which showed that the KMO test value of the survey results was 0.880, exceeding 0.7. Bartlett’s test of sphericity yielded a significance probability value of 0.000 (p < 0.01), indicating the presence of common factors, a validity structure, and interconnectedness between variables in the questionnaire. These findings suggested that the collected data were appropriate for factor analysis.

Table 3 KMO and Bartlett’s test of sphericity.

The principal component analysis approach was used to evaluate the structural validity of the data during the factor analysis procedure. The factor load matrix was rotated by applying the maximum variance method. We utilized a fixed 5-factor extraction criterion when the first eigenvalue was more significant than 1. We excluded items with either too low loads (<0.3) or multiple loads.

Ultimately, after considering all factors, we extracted five common elements. The cumulative total variance interpretation rate of these five factors was 78.29%, indicating that the extracted factors were sufficient to explain over 78.29% of the variation in all items, which suggests that the extracted factors were satisfactory in their ability to explain the variance in the data.

Assessing the measurement model

AVE (average variance extracted) was helpful for assessing convergent and divergent validity. Some researchers stipulated that AVE values in the reflective model should be at least 0.5 (Chin, 1998; Höck and Ringle, 2006). Composite reliability (CR), ranging from 0 to 1, was used as another indicator of convergent validity. CR values should be at least 0.6 in the reflective model. Cronbach’s alpha, a measure of internal consistency reliability that ranges from 0 to 1, was introduced by Cronbach (1951). A higher value of Cronbach’s alpha, closer to 1, indicated higher measurement reliability. There were varying recommendations for acceptable values of Cronbach’s alpha, ranging from 0.70 to 0.95 (Bland and Altman, 1997; DeVellis and Thorpe, 2021). The importance of AVE, CR, and Cronbach’s alpha are presented in Table 4.

Table 4 AVE and reliability measures.

Fornell and Larcker (1981) proposed that the square root of AVE should be greater than any other correlation involving a construct as a criterion for assessing discriminant validity. Wong et al. (2016) corroborated this criterion and demonstrated its reliability. The square root of AVE values for the current study are shown in Table 5.

Table 5 The discriminant validity.

Cross-loading refers to the degree to which an indicator relates to multiple latent variables. It reflected the contribution of an indicator to other constructs; hence the term “cross” and cross-loadings should be greater than factor loadings (Fornell and Larcker, 1981). The factor loadings and cross-loading values for the indicators are shown in Table 6.

Table 6 The indicators’ loading and cross-loading values.

In addition to cross-loading, Henseler et al. (2015) proposed HTMT as an indicator of discriminant validity, which was considered poor if it exceeded 0.90 (Gold et al., 2001). The values of HTMT for the current study are presented in Table 7. Based on the analysis results, we have established a robust measurement model in this study.

Table 7 The HTMT criterion.

Examining the structural model

To determine the significance of the relationship between the independent and dependent variables in this study, we conducted 5000 bootstrap samples.

The PLS-SEM analysis revealed that TA had a significant impact on DL (β = 0.353; p < 0.05), TO (β = 0.353; p < 0.01), TE (β = 0.505; p < 0.001), and DTC (β = 0.189; p < 0.05), providing statistical support for four hypotheses (H1, H2, H3, and H4). Moreover, TO significantly influenced DL (β = 0.351; p < 0.01) but had no significant effect on DTC (β = 0.065; p > 0.05). The analysis results supported hypothesis 5, but H6 was not supported. The study showed that TE had significant effects on DL (β = 0.270; p < 0.01) and DTC (β = 0.177; p < 0.01), supporting the two hypotheses (H7 and H8). Additionally, DL was found to significantly influence DTC (β = 0.578; p < 0.001), supporting Hypothesis 9.

A comprehensive presentation of the bootstrap results is provided in Table 8 and Fig. 2.

Table 8 Result of structure model examination.
Fig. 2: Result of structure model examination.
figure 2

Note: →Significant Path; Insignificant Path. NSp > 0.05, *p < 0.05, **p < 0.01, ***p < 0.001.

Predictive relevance

The coefficient of determination (R2) indicates a model’s predictive accuracy level. R2 values ranged between 0 and 1, with lower values indicating lower explanatory power and higher values indicating better explanatory power. Hair et al. (2021) established criteria for interpreting R2 value, whereby values of 0.75 were considered substantial, 0.50 were moderate, and 0.25 were weak. Table 9 shows the importance of R2, DL (0.556, medium), TE (0.255, weak), TO (0.125, weak), and DTC (0.739, substantial). Overall, the data in this study exhibited moderate levels of predictive accuracy.

Table 9 Predictive accuracy and predictive relevance.

In addition to R2, Stone-Geisser’s Q2 statistics were also used to evaluate the predictive validity of a model. The value of Q2 could be classified into trim (0.02), medium (0.15), and significant (0.35) levels (Wong et al., 2015). Table 9 presented Q2 values for all four endogenous structures, and it was evident that all of the Q2 values were above 0, indicating significant predictive validity for the model.

Inspecting the mediating effects

Based on the finding that technology operations did not significantly impact digital teaching competence, we hypothesized that data literacy might act as a mediator for H6 and conducted a mediation analysis (Hew et al., 2017), the results are presented in Table 10. According to Hair et al. (2014), full or partial mediation was conditional on the indirect effects between the exogenous structure and the endogenous structure through the mediating design being statistically significant.

Table 10 Mediation test.

Complete mediation occurred when VAF > 80%, partial mediation occurred when 20% < VAF < 80%, and no mediation occurred when VAF < 20%. VAF (Variance Account For) refers to the percentage of indirect effects on the total impact and could be calculated as follow:

$${{VAF}} = \frac{{a * b}}{{a * b \,{+}\, c}}$$

Table 10 showed that data literacy partially mediated the path between technology attitudes and digital teaching competence, as well as between technology ethics and digital teaching competence. Data literacy fully mediates the way between technology operations and digital teaching competence. Surprisingly, the results revealed that technology ethics played a complementary, partially mediating role in the path between technology attitudes and data literacy and between technology attitudes and digital teaching competence, which is an intriguing finding that warrants further investigation.

Discussion

Summary of findings

This study aimed to investigate the factors that impact the pre-service teacher’s digital teaching competence, while also exploring the mediating effect of data literacy. The findings demonstrated that technology attitudes, ethics, and data literacy could significantly predict pre-service teachers’ digital teaching competence. Moreover, data literacy was found to mediate the relationship between technology attitudes and digital teaching competence, the relationship between technology operations and digital teaching competence, and the relationship between technology ethics and digital teaching competence. These results are discussed in more detail below.

Firstly, this study has discovered a substantial direct impact of pre-service teachers’ technology attitudes on their digital teaching competence, as well as their technology ethics and data literacy, supporting hypotheses H4, H8, and H9. These findings are consistent with prior research. Sang et al. (2011) found that primary teachers who exhibit positive technology attitudes in education were likelier to integrate ICT into their teaching practices. In line with this, Novella-García and Cloquell-Lozano (2021) highlighted the importance of ethics in teacher education for cultivating digital competence. Similarly, Lin et al. (2022) demonstrated that teachers’ data literacy could significantly impact their digital teaching competence. Based on these findings, it is crucial to motivate pre-service teachers’ attitudes towards using technology in teaching, pay close attention to and protect students’ data privacy in the classroom, promptly address technology ethics concerns, and enhance their data literacy to improve their digital teaching competence. These steps are essential to equip pre-service teachers with the necessary skills and knowledge to effectively integrate technology into their teaching practices, all while ensuring a safe, ethical, and data-sensitive learning environment for their students. To cultivate future educators’ digital teaching competence, university instructors must highlight the importance of attitudes in designing an effective curriculum and act as positive role models for pre-service teachers. Deliberate attention should be given to integrating ethical knowledge and skills throughout technology-oriented courses, enabling pre-service teachers to develop ethical technology usage habits and become responsible digital citizens. Additionally, data should be effectively utilized to enhance pre-service teachers’ data literacy, enabling them to communicate with data and make informed decisions based on evidence.

Secondly, this study has revealed an unexpected result, as H6 is not supported. Contrary to the hypothesis, the findings indicate that pre-service teachers’ technology operations do not have a direct impact on their digital teaching competence. The finding differs from the research conducted by Hatlevik and Hatlevik (2018), as their study suggested that successful integration of ICT in education relied on teachers’ readiness to use technological tools. Nonetheless, while young people possess strong competence in operating digital devices, using this competence was limited due to being in the initial stage of professional development. In light of this finding, the conclusion that technology operations are not significantly associated with digital teaching competence also appears reasonable. After all, the development of digital teaching competence involves more than mere technology operations, as it occurs within the context of the field of education. Equipment and tool operations are insufficient in teaching, as specific education and teaching knowledge—including teaching design ability and experience—are necessary. Therefore, teachers’ training programs must place equal emphasis on pedagogical skills and technology operations.

Thirdly, this study has proved that technology attitudes strongly impacted pre-service teachers’ data literacy, technology operations, and technology ethics, supporting hypotheses H1, H5, and H7. These findings are in line with previous studies. Teachers, who have a positive attitude towards technology, are equipped with skilled technical operations, and have a keen sense of technology ethics, are more likely to use student performance data to make decisions (Knezek and Christensen, 2016; Rubach and Lazarides, 2021). Pre-service teachers play the dual roles of students and future teachers. It is crucial to develop their data literacy and data literacy for prospective students to cultivate digital citizenship in society. This study shows that pre-service teachers’ data literacy could be effectively promoted by fostering positive technology attitudes, teaching technology operations, and cultivating technology ethics. Instructors could enhance data literacy by creatively utilizing pre-service teachers’ classroom performance and behavior data to foster their enthusiasm and initiative in using data. Furthermore, instructing pre-service teachers on using software and hardware can help them to use data and make informed decisions, experiencing the use of data and its convenience in teaching. Additionally, instructors should provide ethical education regarding responsible data use, including data utilization limitations and anonymization practices, to cultivate ethical behavior in applying technology.

Fourthly, this study has concluded that technology attitudes had a strong direct impact on pre-service teachers’ technology operations. At the same time, technology attitudes substantially directly affected pre-service teachers’ technology ethics. Hence, H2 and H3 are supported. These results coincide with previous studies. Aslan and Zhu (2017) found that it was easier if teachers had a positive attitude toward using technology in teaching. They would ignore ethical issues in the classroom. After all, attitudes had three components: cognitive, emotional, and behavioral (Svenningsson et al., 2022). Hence, encouraging pre-service teachers to incorporate technology into classroom activities is paramount. To achieve this, university instructors should create an environment that promotes positive attitudes and motivation toward using technology in teaching. By comprehensively utilizing technology tools, pre-service teachers could be aware of the benefits technology can offer in enhancing the teaching process, encouraging teachers’ professional development, and enhancing student growth, enabling them to become adept at using technology to teach and stimulating their enthusiasm for doing so.

Fifthly, this study has unveiled that data literacy played a dual role in mediating the relationship between pre-service teachers’ technology attitude or technology ethics and their digital teaching competence. More specifically, data literacy is a complementary partial mediator between technology attitudes and digital teaching competence while functioning as a full mediator between technology operations and digital teaching competence. First, previous research highlighted two critical associations between pre-service teachers’ technology attitudes and data literacy and the importance of data literacy for digital teaching competence. Second, previous research identified the link between pre-service teachers’ technology operations and data literacy and the importance of data literacy to digital teaching competencies. Third, previous research identified the relationship between pre-service teachers’ technology ethics and data literacy and the importance of data literacy to digital teaching competence. Based on previous research and echoed those findings, this study confirmed that data literacy could mediate the development of pre-service teachers’ digital teaching competence. Hence, pre-service teachers, who exhibit a positive attitude toward technology, possess advanced technology operations, and have a deeper understanding of technology ethics are likelier to have an elevated level of data literacy.

Finally, this study has revealed an exciting relationship with technology ethics as a crucial complementary partial mediator between technology attitude and data literacy, or digital teaching competence. Unfortunately, pre-service teacher training tends to assign minimal importance to technology ethics. However, neglecting the ethical dimension of technology in education could significantly harm democratic society (Gracia Calandín, 2018). Given the advancement of technologies, including artificial intelligence, while there are positive impacts on education, such as more precise teaching by educators and personalized learning for students, there are also many negative aspects, such as privacy leakage and the widening digital divide. Hence, ethics is becoming increasingly important presently. The findings of this study confirmed the crucial role of technology ethics, and in the future, pre-service teacher training programs should place greater emphasis on ethical literacy education. Such efforts would help to enhance data literacy and promote the development of digital teaching competence among future educators.

Conclusion, limitation, and future research

To conclude, this study examined the factors that impact digital teaching competence among pre-service teachers and investigated the mediating role of data literacy. First of all, our findings indicated that technology attitudes, technology ethics, and data literacy significantly affected the pre-service teacher’s digital teaching competence. Secondly, the results demonstrated that data literacy mediated between technology attitudes, technology operations, technology ethics, and digital teaching competence. Thirdly, our findings indicated that technology ethics mediated between technology attitudes and data literacy, as well as between technology attitudes and digital teaching competence. This study offered a more extensive and comprehensive understanding of the factors that may impact pre-service teachers’ digital teaching competence. Findings are anticipated to benefit policymakers, researchers, and teacher educators in their efforts to merge data literacy and technology ethics to promote pre-service teachers’ digital teaching competence.

Although this study has notable strengths, it also has a few limitations. Firstly, the participants included only students from a single regular university, and the gender distribution was imbalanced. As a result, the conclusions may need to be more generalizable to other universities or student populations. Secondly, the study relied solely on questionnaire data. Future research could incorporate various research methods, such as interviews and diverse samples, to validate the research findings through triangulation.

For further research, cross-national data could be compared to develop more generalized insights into pre-service teachers’ digital teaching competence. In addition, comparing the differences in digital teaching competence between pre-service and in-service teachers could promote effective training programs. Lastly, an approach such as Qualitative Comparative Analysis could be applied to identify the combined factors influencing digital teaching competence.