Rewriting into Angular bootstrap