This might be a very basic question. I saw following sentence in a dictionary. Emphasis mine.
"defense portfolio could be the carrot to dangle before him"
I could not justify the use of "To" before dangle. I think the correct sentence should be
"defense portfolio could be the carrot dangling before him"
Could you please explain which sentence should be the correct one? and why?