The Angel won't lose the ability it gains if it stops being an Angel after the ability resolves.

Artwork
Loading artwork…
The Book of Exalted Deeds
The List · #AFR-4 · EN
Nonfoil—Foil—
Card rules
At the beginning of your end step, if you gained 3 or more life this turn, create a 3/3 white Angel creature token with flying.


,
, Exile The Book of Exalted Deeds: Put an enlightened counter on target Angel. It gains "You can't lose the game and your opponents can't win the game." Activate only as a sorcery.
Mythic · Illustrated by Daniel Ljunggren
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
The enlightenment counter placed by the last ability serves as a memory aid. It isn't connected to the granted ability. The Angel keeps that ability even if it loses the counter. Similarly, if the counter is somehow moved to another permanent, that permanent doesn't gain the ability.