$compileProvider
(service in module ng
)
Register a new 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.
{ng.$compileProvider}
– Self for chaining.