diff options
| author | Dave Peticolas | 2013-10-01 22:00:30 -0700 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-10-03 21:44:16 +0100 | 
| commit | a005797afa9bdb290d90ee0d3dd394c6551c3321 (patch) | |
| tree | 31076ffc948f1f92dd4a6367faa1ac87ba11465d /src/ng/directive/ngInclude.js | |
| parent | b5214aa20a8a8bc611b0fc399dbd729bdc42b396 (diff) | |
| download | angular.js-a005797afa9bdb290d90ee0d3dd394c6551c3321.tar.bz2 | |
docs(ngInclude): clarity, formatting
Closes #4222
Diffstat (limited to 'src/ng/directive/ngInclude.js')
| -rw-r--r-- | src/ng/directive/ngInclude.js | 27 | 
1 files changed, 13 insertions, 14 deletions
| diff --git a/src/ng/directive/ngInclude.js b/src/ng/directive/ngInclude.js index ccb26bab..e4890494 100644 --- a/src/ng/directive/ngInclude.js +++ b/src/ng/directive/ngInclude.js @@ -8,20 +8,19 @@   * @description   * Fetches, compiles and includes an external HTML fragment.   * - * Keep in mind that: - * - * -    by default, the template URL is restricted to the same domain and protocol as the - *      application document.  This is done by calling {@link ng.$sce#getTrustedResourceUrl - *      $sce.getTrustedResourceUrl} on it.  To load templates from other domains and/or protocols, - *      you may either either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist them} or - *      {@link ng.$sce#trustAsResourceUrl wrap it} into a trusted value.  Refer Angular's {@link - *      ng.$sce Strict Contextual Escaping}. - * -    in addition, the browser's - *      {@link https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest - *      Same Origin Policy} and {@link http://www.w3.org/TR/cors/ Cross-Origin Resource Sharing - *      (CORS)} policy apply that may further restrict whether the template is successfully loaded. - *      (e.g.  ngInclude won't work for cross-domain requests on all browsers and for `file://` - *      access on some browsers) + * By default, the template URL is restricted to the same domain and protocol as the + * application document. This is done by calling {@link ng.$sce#getTrustedResourceUrl + * $sce.getTrustedResourceUrl} on it. To load templates from other domains or protocols + * you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist them} or + * {@link ng.$sce#trustAsResourceUrl wrap them} as trusted values. Refer to Angular's {@link + * ng.$sce Strict Contextual Escaping}. + *  + * In addition, the browser's + * {@link https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest + * Same Origin Policy} and {@link http://www.w3.org/TR/cors/ Cross-Origin Resource Sharing + * (CORS)} policy may further restrict whether the template is successfully loaded. + * For example, `ngInclude` won't work for cross-domain requests on all browsers and for `file://` + * access on some browsers.   *   * @animations   * enter - animation is used to bring new content into the browser. | 
