templateUrl
property, as shown in the following code snippet:<div alert></div>
parking.directive("alert", function () {
return {
templateUrl: "alert.html"
});
<div class="alert">
<span class="alert-topic">
Something went wrong!
</span>
<span class="alert-description">
You must inform the plate and the color of the car!
</span>
</div>