Measles is a highly contagious virus that lives in the nose and throat mucus of an infected person. It can spread to others through coughing and sneezing. Also, measles virus can live for up to two hours in an airspace where the infected person coughed or sneezed.
I hope my answer has come to your help. God bless and have a nice day ahead!