-
Notifications
You must be signed in to change notification settings - Fork 6.7k
popover-template directive - addresses issue #220 #1391
Conversation
This is golden. Thank you! 👍 |
+1 |
2 similar comments
+1 |
👍 |
Does this work for Bootstrap 3? I'm a little confused because nothing is working for me. |
Have been wanting this feature for a long time now. Works exactly as expected, would love to see in the mainline. +1 |
+1 |
1 similar comment
+1 |
would love to see this merged. |
+1 |
2 similar comments
+1 |
+1 |
I want to recreate the PR for newer 0.9.0 version - what should I do? "Rebase" this PR? Or create a new PR? |
@jbruni Honestly, I think you're wasting your time a little bit. This PR is great, I'm using it daily, but why isn't it merged yet into master ? |
@Thinkscape , there is a running plan to refactor to the $tooltip service to support such use cases, as such, a review isn't applicable to this PR at the moment. I have personally looked into this PR. Parts of this PR are no longer applicable due to recent changes to the tooltip service. My main issue with this PR is that it uses manual transclusion (instead of ngTransclude or ngInclude) and the custom detach method (which won't be applicable now due to changes to the $tooltip service). Some other issues: In Angular 1.2, you have to consider $sce for resource urls. The use of the compile-scope attribute seems a little hacky, not sure if that's needed. Anybody is welcome to review this PR and provide more design thought, it is not only up to the members of Angular UI. My current input to the discussion with regards to design of $tooltip is that I feel that the $tooltip service could take on a similar design to the |
@chrisirhc Ok, two things then:
@jbruni Could you take a look at the critique above ? In my opinion:
|
Take a look at how many conflicts you'd have. It's often easier to just create a new branch and cherry-pick commits (or straight on copy-paste relevant code and the refactor it) |
Thanks, @Thinkscape and @chrisirhc - very nice to receive a feedback from the team about the code. My current understanding is that the PR code, although very simple, does not follow the project roadmap. In a previous effort, I included Regarding the scope issue, I simply moved forward with the first working solution I've found. So, as of now, and due to popular request, I've only made the required modifications so people (starting with myself) can simply use HTML and bindings inside their popovers with latest version (0.10.0, at this moment). I've just submitted the new PR, not exactly expecting it to merged, but used as a temporary workaround, while the official feature is not available. NOTE: Are you guys sure that you want to enforce total removal (full destruction of DOM and binded events/data) upon each hide/show of a tooltip/popover? In my use case, there is a popover with Date Picker and other components... this approach is performance killer, as it takes quite some time for it to render. Why not detach? The tooltip/popover is still fully destroyed when the triggering element scope is destroyed. (This is also my case: when the ng-view changes, the tooltip is effectively removed... that's why the scope |
+1 |
1 similar comment
+1 |
Addresses feature request "support template url for partial" #220
Improved over @joshdmiller PR #369
Updated from @jbruni PR #1046 for version 0.7.0
Resolves properly the ng-model binding issue seen at http://plnkr.co/edit/cbqOnktHhxSjeLIBE1w7?p=preview