Added templateUrl parameter.