|
233 | 233 | * If no `type` is specified, then the type is considered to be html.
|
234 | 234 | *
|
235 | 235 | * #### `template`
|
236 |
| - * replace the current element with the contents of the HTML. The replacement process |
237 |
| - * migrates all of the attributes / classes from the old element to the new one. See the |
238 |
| - * {@link guide/directive#creating-custom-directives_creating-directives_template-expanding-directive |
239 |
| - * Directives Guide} for an example. |
| 236 | + * HTML markup that may: |
| 237 | + * * Replace the contents of the directive's element (defualt). |
| 238 | + * * Replace the directive's element itself (if `replace` is true - DEPRECATED). |
| 239 | + * * Wrap the contents of the directive's element (if `transclude` is true). |
| 240 | + * |
| 241 | + * Value may be: |
240 | 242 | *
|
241 |
| - * You can specify `template` as a string representing the template or as a function which takes |
242 |
| - * two arguments `tElement` and `tAttrs` (described in the `compile` function api below) and |
243 |
| - * returns a string value representing the template. |
| 243 | + * * A string. For example `<div red-on-hover>{{delete_str}}</div>`. |
| 244 | + * * A function which takes two arguments `tElement` and `tAttrs` (described in the `compile` |
| 245 | + * function api below) and returns a string value. |
244 | 246 | *
|
245 | 247 | *
|
246 | 248 | * #### `templateUrl`
|
|
255 | 257 | *
|
256 | 258 | *
|
257 | 259 | * #### `replace` ([*DEPRECATED*!], will be removed in next major release)
|
258 |
| - * specify where the template should be inserted. Defaults to `false`. |
| 260 | + * specify what the template should replace. Defaults to `false`. |
259 | 261 | *
|
260 |
| - * * `true` - the template will replace the current element. |
261 |
| - * * `false` - the template will replace the contents of the current element. |
| 262 | + * * `true` - the template will replace the directive's element. |
| 263 | + * * `false` - the template will replace the contents of the directive's element. |
262 | 264 | *
|
| 265 | + * The replacement process migrates all of the attributes / classes from the old element to the new |
| 266 | + * one. See the {@link guide/directive#creating-custom-directives_creating-directives_template-expanding-directive |
| 267 | + * Directives Guide} for an example. |
263 | 268 | *
|
264 | 269 | * #### `transclude`
|
265 | 270 | * compile the content of the element and make it available to the directive.
|
|
0 commit comments