angular replace is deprecated

feature is no longer used