Sample Vue code to reference an separate page Array

Job ID: 31184946

Budget: $15 – $25 USD

I need some very simple Vue code that shows how to reference an array on a js file that is stored on a separate file. I this file in a folder called data that is in the src folder src/data/NIH_Activity_Codes.js. I need a function that I can use on my mainlayout.vue page that passes in a "ACT_CODE" of "F38", and gets the "ACT_TITLE" of "Applied Medical Informatics Fellowships". The array needs to be referenced and not hard coded to the a main layout vue page-- I don't need the entire project just the code pages. and instruction how to reference the file. I know that I can hard code the array to my main layout page or I can call a database call with AXIOS and pull it from the database but I want to expand my knowledge of Vue. This is a learning experience for me so I want a clean structure
Related categories: JavaScript Vue.js