Permalink
Browse files

feat(docs): Updated popover directive examples

  • Loading branch information...
tmorehouse committed Aug 30, 2017
1 parent 72a37b3 commit 3adbcb57a2dcfb30404a2451d7a6464a293babe0
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/directives/popover/README.md
@@ -77,17 +77,17 @@ export default {
popoverMethod() {
// Returns the content as a string
// Will be called each time popover is opened
return '<strong>' + Date.now() + '</strong>';
return '<strong>' + new Date() + '</strong>';
}
},
computed: {
popoverConfig() {
// Bot title and content as specified as a function
// Both title and content specified as a function in this example
// and will be called each time popover is opened
return {
html: true,
title: () => { return 'Hello <b>Popover:</b> ' + (++this.counter); },
content: () => { return 'The date is:<br><em>' + Date.now() + '</em>'; }
content: () => { return 'The date is:<br><em>' + new Date() + '</em>'; }
};
}
}

0 comments on commit 3adbcb5

Please sign in to comment.