Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Angular: Custom element directive
// Custem element directive
app.directive("productDescription", function(){
return {
restrict: 'E',
templateUrl: 'product-description.html'
};
});
---
In HTML
<product-description></product-description>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.