Ionic and angular-leaflet integration leads to an error

Hi, I’m using angular-leaflet-directive to render my maps and since I started using that I’m getting the following error.

Cannot read property '__cleanup' of null

I think it’s because Ionic doesn’t know this directive and it can’t “clean” it. It’s any way to correct this?

Thank you.

I think no,I use this directives and I have no problem with them.

Do you show your card in a modal window?

Nope,

I have it like this

<leaflet ng-if="items" data-tap-disabled="true" defaults="defaults" center="center" markers="markers" width="100%" height="50%" tiles="tiles"></leaflet>

If I remove this, I don’t get the error anymore.