Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

feat(popover): support template url for partial #3409

Closed
wants to merge 1 commit into from
Closed

feat(popover): support template url for partial #3409

wants to merge 1 commit into from

Conversation

jbruni
Copy link
Contributor

@jbruni jbruni commented Mar 19, 2015

Updated old solution with improvements:

  • Very simple but effective implementation.
  • Watches popover-template attribute. The template can change at any time.
  • Bindings and positioning working fine.
  • Zero effects on current functionality.
  • (In fact, zero modifications in all about popovers, excepts it injects the compiled template into it, when the popover-template is used.)

Code in action at http://codepen.io/anon/pen/XJodJr

How to use:

  • simply specify the HTML template in the popover-template attribute

@karianna
Copy link
Contributor

@jbruni Are you able to add some tests around this please?

.directive( 'popoverTemplatePopup', [ function () {
return {
restrict: 'EA',
replace: true,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisirhc
Copy link
Contributor

Happy for people to make a comparison between this and #1848 .

@jbruni
Copy link
Contributor Author

jbruni commented Mar 22, 2015

@karianna - I'm trying to learn how to make tests in my little free time... already made my first steps... hopefully I can have something as soon as possible.

@karianna
Copy link
Contributor

NP: We're happy to wait - there's lots of PRs we're still looking at.

@antoinepairet
Copy link

#1848 was merged.
@jbruni thanks for your efforts while working on this.
regards,

Closing the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants