$compileProvider
(service in module ng
)
Register directives with the compiler.
name – {string} –
Name of the directive in camel-case. (ie ngBind
which will match as
ng-bind
).
directiveFactory – {function} –
An injectable directive factroy function. See guide/directive for more info.