A simple demo. It was funny first time I tried to get the static content via link’s attribute and assign it to a scope.
But this is a demo http://jsfiddle.net/juanmendez/k6chmnch/
A great explanation can be found here on stackoverflow
For more on Angular directives, I recommend this article with great insights.