refactor(util): move the nextUid array outside of angular