search

Home  >  Q&A  >  body text

angular.js - As long as a directive's replace is set to true, an error will be reported! Find the solution!

As long as the directive's replace is set to true, the following error will be reported:
Error: [$compile:tplrt]
Want to know why? Translated, it seems to be a path problem with templateUrl, but if you remove the replace setting, it can be displayed correctly, so I want to know the reason and how to solve it

伊谢尔伦伊谢尔伦2856 days ago571

reply all(1)I'll reply

  • PHPz

    PHPz2017-05-15 16:56:36

    This parameter has been around for a long timedeprecated, try not to use it

    reply
    0
  • Cancelreply