O'Reilly logo
  • xiaoxiao zhang thinks this is interesting:

Sometimes it might be interesting to discard the original element, where the directive was attached, replacing it by the directive's template. This can be done by enabling the replace property:

From

Cover of AngularJS Essentials

Note

Replace的是tag本身而不是里面的内容。