docs(directive): add an example showing `templateUrl` functions

Related to #2895