|
213 | 213 | *
|
214 | 214 | *
|
215 | 215 | * #### `template`
|
216 |
| - * replace the current element with the contents of the HTML. The replacement process |
217 |
| - * migrates all of the attributes / classes from the old element to the new one. See the |
218 |
| - * {@link guide/directive#creating-custom-directives_creating-directives_template-expanding-directive |
219 |
| - * Directives Guide} for an example. |
| 216 | + * HTML markup that may: |
| 217 | + * * Replace the contents of the directive's element (defualt). |
| 218 | + * * Replace the directive's element itself (if `replace` is true - DEPRECATED). |
| 219 | + * * Wrap the contents of the directive's element (if `transclude` is true). |
| 220 | + * |
| 221 | + * Value may be: |
220 | 222 | *
|
221 |
| - * You can specify `template` as a string representing the template or as a function which takes |
222 |
| - * two arguments `tElement` and `tAttrs` (described in the `compile` function api below) and |
223 |
| - * returns a string value representing the template. |
| 223 | + * * A string. For example `<div red-on-hover>{{delete_str}}</div>`. |
| 224 | + * * A function which takes two arguments `tElement` and `tAttrs` (described in the `compile` |
| 225 | + * function api below) and returns a string value. |
224 | 226 | *
|
225 | 227 | *
|
226 | 228 | * #### `templateUrl`
|
|
235 | 237 | *
|
236 | 238 | *
|
237 | 239 | * #### `replace` ([*DEPRECATED*!], will be removed in next major release)
|
238 |
| - * specify where the template should be inserted. Defaults to `false`. |
| 240 | + * specify what the template should replace. Defaults to `false`. |
239 | 241 | *
|
240 |
| - * * `true` - the template will replace the current element. |
241 |
| - * * `false` - the template will replace the contents of the current element. |
| 242 | + * * `true` - the template will replace the directive's element. |
| 243 | + * * `false` - the template will replace the contents of the directive's element. |
242 | 244 | *
|
| 245 | + * The replacement process migrates all of the attributes / classes from the old element to the new |
| 246 | + * one. See the {@link guide/directive#creating-custom-directives_creating-directives_template-expanding-directive |
| 247 | + * Directives Guide} for an example. |
243 | 248 | *
|
244 | 249 | * #### `transclude`
|
245 | 250 | * compile the content of the element and make it available to the directive.
|
|
0 commit comments