Comparing two different implementations of modals in AngularJS and creating my own