fixed gulp not closing. Made all $rootScope.$apply calls a $new scope's $apply