Switching to Angular UI, part I.