Creating Custom Angular Directives
Part II: The "replace" property
blog.kevinchisholm.com