Why does angularJS not like end slashes?