When you are actually going through security, it's recommended to remove your e-cigarette/vape, place it in a tray/bin, and put it through the x-ray scanner separately from your carry-on bag. If you keep it in your bag, it could look suspicious and cause you to undergo additional screening.