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

There is another way to achieve the same goal with more quality. We just need to move the HTML snippet to an isolated file and bind it using the templateUrl property, as shown in the following code snippet:

From

Cover of AngularJS Essentials

Note

Template html这样写最好