From 5158a868ba74e44b61b888f1394b71546568171c Mon Sep 17 00:00:00 2001 From: Chi Kei Chan Date: Sun, 14 Dec 2014 21:11:39 -0800 Subject: [PATCH] docs($templateRequest): Fixed run-on sentence The description of $templateRequest contains a run-on sentence that makes it confusing to understand. ORGINAL: If the HTTP request fails or the response data of the HTTP request is empty then a `$compile` error will be thrown (the exception can be thwarted by setting the 2nd parameter of the function to true). NEW: If the HTTP request fails or the response data of the HTTP request is empty, a `$compile` error will be thrown (the exception can be thwarted by setting the 2nd parameter of the function to true). --- src/ng/templateRequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng/templateRequest.js b/src/ng/templateRequest.js index bacf30e1742d..deb7e8c5a54c 100644 --- a/src/ng/templateRequest.js +++ b/src/ng/templateRequest.js @@ -9,7 +9,7 @@ var $compileMinErr = minErr('$compile'); * @description * The `$templateRequest` service downloads the provided template using `$http` and, upon success, * stores the contents inside of `$templateCache`. If the HTTP request fails or the response data - * of the HTTP request is empty then a `$compile` error will be thrown (the exception can be thwarted + * of the HTTP request is empty, a `$compile` error will be thrown (the exception can be thwarted * by setting the 2nd parameter of the function to true). * * @param {string} tpl The HTTP request template URL