support angular js's templateUrl replacement