angular how to remove the last three numbers in html code example Example: remove last 3 characters from string javascript str = str.slice(0, -3);