aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide
diff options
context:
space:
mode:
authorRon Waldon2013-09-26 21:23:49 +1000
committerPete Bacon Darwin2013-09-30 22:51:01 +0100
commit106ee8f85006f25858470a84b89146f54fa02b15 (patch)
tree8859323517b5a83c2afebc45c56d41d31a000759 /docs/content/guide
parentfc05f5e701f77012d54f87facb5a83d56996c7f1 (diff)
downloadangular.js-106ee8f85006f25858470a84b89146f54fa02b15.tar.bz2
docs(guide): describe directive replace:false
Previous version stated `replace:false` will append template to element. Improve description to accurately state that template will _replace_ the contents of the current element. Closes #2235, #4166
Diffstat (limited to 'docs/content/guide')
-rw-r--r--docs/content/guide/directive.ngdoc7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc
index 9126b695..2fcaed60 100644
--- a/docs/content/guide/directive.ngdoc
+++ b/docs/content/guide/directive.ngdoc
@@ -430,8 +430,11 @@ compiler}. The attributes are:
a string value representing the url. In either case, the template URL is passed through {@link
api/ng.$sce#getTrustedResourceUrl $sce.getTrustedResourceUrl}.
- * `replace` - if set to `true` then the template will replace the current element, rather than
- append the template to the element.
+ * `replace` - specify where the template should be inserted. Defaults to `false`.
+
+ * `true` - the template will replace the current element.
+ * `false` - the template will replace the contents of the current element.
+
* `transclude` - compile the content of the element and make it available to the directive.
Typically used with {@link api/ng.directive:ngTransclude