-
Notifications
You must be signed in to change notification settings - Fork 6.7k
refactor(): add directive prefixes #157
Comments
+1 we should get to this. Plan it for 0.4.0? Also we should decide on a prefix ... since we have so many requests to support zurb someday. |
Agreed. And I think |
OK! Who wants to write a script to do 99% of the work for this for us? :-) |
Shell scripts are my friend. A few |
Go for it! 💃 Make sure it replaces the docs' html in addition to the source files. |
Just an update, I did write a script like a week ago that ran a bunch of |
You guys need to do this. I'm very annoyed that I can't use the HTML5 Seriously, it's annoying. You guys need to add prefixes./ |
@joshdmiller any progress? |
bs- or ui- are good possibilities. There's one other thing, there's also the possibility of allowing custom prefixes by using $compileProvider.directive() to register the directives and providing it with a constant. I think this is a really good use case for module constants. However, for this to work well, users must rely on the custom module build functionality to generate the JS files (so that it generates the files with the correct header) and it will break the ability to just download the separate JS files straight from the repo. I think that's a decent compromise, though. I'll be happy to post an example on how to do this (it's getting late now, otherwise I'll whip it out) if there are doubts about how to do it. I realized this as I was reading https://github.com/angular/angular.js/blob/master/src/AngularPublic.js#L139-L158 . |
@chrisirhc I think |
Since this issue is still lingering, I'll add my opinion. First off, I think With regard to @chrisirhc comment about custom builds, don't force users to do that. Making it an option might be nice, but encouraging it prevents users from getting the benefits of using a CDN. |
Any news about this? This seems to be a "blocker" to many people and doesn't seem very hard to implement... |
+1 please resolve this issue. |
+1 |
I have already merge bootstrap-sass and angular-ui/bootstrap in a new project. Please try and give me some advice. Thanks. |
Me and my team were thinking about implementing ui-bootstrap on our work's project, but this issue cant be ignored. =/ Any idea when the solution is coming? these tools seems so appealing! |
I understand there are lots of frameworks out there, and it would be impossible not to collide with one of them. That said, ui-bootstrap and angular-strap are two very popular frameworks, so it would seem to be a fairly common issue to have this collision. This is clearly a hot issue on the angular-strap issues list as well: mgcrea/angular-strap#521 |
+1 |
prefixing would be fantastic, +1 |
+1 for bs |
+1 - This issue has been an annoyance for a long time. Prefixing vendor namespace also makes it a lot easier to figure out at a glance who the vendor of a directive is, you can then quickly refer to their docs for help. |
+1 for any kind of prefix |
Guys. Decide on which prefix to use ( It's been more than I would vote against automating this with shell scripts though. That just calls for issues on the long run which could've been caught when going over this line by line. |
Long time issue indeed. We are going to do it for release 1.0 (when we get up to date with angular and bootstrap) since it is when we can change the API. After that we will do semver as well. |
Where are we ? I'm using angularjs 1.3.3, ui-bootstrap-tpls-0.12.1.min.js (and a bunch of other plugins) and still get this error : [$compile:multidir] http://errors.angularjs.org/1.3.3/$compile/multidir?p0=match&p1=typeaheadMa…%3D%22match%22%20query%3D%22query%22%20template-url%3D%22templateUrl%22%3E Where can I manually change the match directive name to avoid this conflit (If I have correctly read tour potst ! ) ?? |
Proposal
If this is considered a breaking change, follow the same route as in my proposal |
+1 |
We're moving all prefix-related discussion to one topic: #3396 |
Creating this since only the group thread existed previously.
I was working today and realized the AngularUI version of modal is broken-ish. I want to use the Bootstrap version, but unfortunately everywhere I have a modal class will start having breaking because the bootstrap AND angularUI versions will start doubling up.
This lib really needs to be prefixed, it's sort of frustrating.
https://groups.google.com/forum/?fromgroups=#!searchin/angular-ui/prefix/angular-ui/WPg58BFQDJc/kikQuy5OAcsJ
The text was updated successfully, but these errors were encountered: