Closed saade closed 7 years ago
I think you need to assign it to a variable on the controller class constructor (eg this.$compile = $compile
) then it should be accessible in the link function by doing controllers.$compile
@mikemillers you're right! Thanks BRO!!
I need to use $compile inside a directive. But it says:
$compile is not defined
.How do i inject $compile?
Code example: