error Cannot read property 'toLowerCase' of undefined in line 3124 when i use bspopover
Hi I am use bspopover with tamplate like your sample but when call tooltip module in line 3124 first time element[0] has an object but second time element = "popover"
I am facing the same problem..
i figured out i am using ui.bootstrap and angular-strap. ui.bootstrap has a directive with name "popover" and this directive called $tooltip then when i use popover of angular-strap thats call $tooltip twice. now you can delete popover directive on ui.bootstrap or u can change directive name . work for me
Fixes #826
I'm experimenting the same issue when using both angular-ui and angular-strap
The ethical problem is about touching legacy vendor code Maybe overriding the conflicted directive in user own code could be a reasonable solution...
What I did is build angular-ui with the components that I need but I think it would be much better to rename the strap directives.
+1
i have the same problem!
I'm having similar problem: Unable to get property 'toLowerCase' of undefined or null reference at w (http://....../Scripts/angular-strap.min.js:8:52476). How to fix it. I installed angular strap for date picker.
You can specify which ui-bootstrap components you want (ie. 'ui.bootstrap.tabs') instead of the whole module ('ui.bootstrap')
+1.
In the process of converting from ui.bootstrap to angular-strap and having a collision on the $tooltip provider being used by each. Need to use angular-strap popovers but the rest of the ui.bootstrap components for now so it would be helpful to resolve this.
Updating $tooltip to $bsTooltip fixes this. Should I submit a pull request?
Hi @richardm ,
could you please provide a little more detail on the fix you applied? i'm having the same issue and would like to continue using both components.
cheers!
From what I can tell, @richardm just edited the AngularStap source code and changed the $tooltip service name and all its references to $bsTooltip to avoid the name conflict.
@vmlf01 thank you!
Having the same problem. I don't see the $tooltip is changed to $bsTooltip.
Looking forward to this being fixed!
@mgcrea Can you please answer this one?
in angular-strap.js ,find $tooltip and replace with $bstooltip or whatever . this error becuase of using angular-strap and ui-bootstrap library together
+1 for renaming $tooltip to $bsTooltip.
Do we have an ETA on when to expect this change?
There won't be a hard rename any time soon (breaking change), not until 3.0 at least. The idea is to leverage ngAnnotate to provide a compat build that could be used along UI.Bootstrap. The discussion lives in #521. Closing this one as a duplicate.
+1 for renaming $tooltip to $bsTooltip. And it's working great.