Prequel. Dan Brown wrote Angels & Demons (2000) before The Da Vinci Code (2003). The events of Angels & Demons take place earlier in Robert Langdon's timeline.
However, the film order reversed the books: The Da Vinci Code movie (2006) came first, making Angels & Demons (2009) a cinematic sequel but narrative prequel. The third film, Inferno (2016), follows The Da Vinci Code chronologically.
Confusing? Blame Hollywood's preference for adapting the more famous book first.