-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Compatibility with UI Bootstrap #521
Comments
We are having success mixing and matching, by only loading the modules from each library that we actually use. You can pick and choose individual modules from AngularStrap by downloading them (and their dependencies!) directly from the dist directory and you can build a custom ui.bootstrap build pack with only the things you want. Our app module depends on all of ui.boostrap, but only the individual mgcrea.ngStrap.{foo} modules that we're using. It works really well, and I think it's probably as good as you can do without renaming the services exposed by one or the other project. |
I'm not sure there is anything I can do at |
@mgcrea +1 a project i'm working uses both angular-strap and angular ui bootstrap for historical reasons. with the latter i'm able to use browserify to do stuff like npm install angular-ui-bootstrap then require('angular-ui-bootstrap/src/modal/modal');
angular.module('myModule', ['ui.bootstrap.modal']); It would be great to have that workflow for angular-strap too, so instead of my module depending on |
I think there's the urgent need for a review of the naming system. I suggest prefixing every service with My specific needs include using |
I'm having name conflict problems with the $modal component. There's no good and elegant way to workaround this. I agree with prefixing all ng-strap names with bs. |
I made a PR to |
@frapontillo, that's great news. Ping me once it lands and I'll try to add a "compat" build to AngularStrap. (renaming |
WIll do. |
I wish this PR will be merged soon ;) |
this will solve a lot of headache :) |
+1 |
I am also having a conflict with ui.bootstrap and angularstrap $modal services. |
+1 Same Problem $tooltip in AngularStrap and Angular-UI Bootstrap conflict |
+1 |
+1. This makes use of ui-bootstrap and angular-strap together nearly impossible. |
+1 Can't easily use timepicker from angular-strap, because $tooltip services conflicting. ($bsTooltip or similar would be nice) |
+1. It would be very nice to use both by prefixing them with $asModel or $asTooltip |
+1. |
Landed in ng-annotate-v0.10. |
+1 |
@mgcrea, when you create the compat build, would you please avoid using |
@frapontillo tried with an updated
Does not seem to have any effect on the output. Any ideas? |
@mgcrea based on my test with the ng-annotate command line, you must pass the |
@mgcrea from a quick read to the
|
@frapontillo and @mgcrea angular-strap's
|
That still leaves all the angular 1.x users without a solution though :( |
Can't you ship a compatibility version alongside the main one? |
I could, but the issue is that it could not easily be automated (mostly due to inline refs). But it could be done. Unfortunately, I don't really have the time to spend a couple of hours on this for now. |
If you could provide some guidelines on the procedure you have in mind I could do that and open a PR here. |
one of my gulp task is to use ngAnnotate to rename the some service
@frapontillo if you don't know how to refactor, you can use ngAnnotate to rename the service, and then take diff compare, then you will know where to rename/refactor |
We could use something like @e-cloud to produce a gulp build prefixing all services with |
@frapontillo sounds good to me, just poc'd this in 7776d8c. Feel free to iterate upon the current master & test it. I'll release a new patch version as soon as you confirm everything is working. |
👍 |
A compat build landed in d063b44. Released in Thanks! |
❤️ |
I'm loading it this way: But I got this error: I'm using it like the following:
Icon
Am I missing something? Thanks, |
Yeah, I f***ed up a renaming, it's already been fixed in master. |
@frapontillo @mgcrea can we get a release with 847d938? |
+1 |
Guys I'm having some problems using together angular-strap and ui-bootstrap (most recent versions). In some cases it is just some errors in the debug console but in others it is angular-strap getting unusable depending on the inclusion order. Check this plunker. http://plnkr.co/edit/QAA6mxfCV88QQPSUadUt Hope it is useful. |
You should add |
@just-boris thanks, it fixes it. Is this compat build something temporal or it is going to be this way now on? |
I am here to say that if you are reading this, and have both the compat and regular versions of the angular-strap.js and are still getting the console error, You may be using |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
If I load the angular-strap module alongside the "ui.bootstrap" module, several javascript errors are reported and components do not work. Ideally, it would be great to mix and match the best components from both libraries.
The UI Bootstrap library can be found here: http://angular-ui.github.io/bootstrap/
The text was updated successfully, but these errors were encountered: