$compileProvider
(service in module ng
)
Register a new directive with compiler
name – {string} –
name of the directive.
directiveFactory – {function} –
An injectable directive factory function.
{ng.$compileProvider}
– Self for chaining.
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.