Hey guys want to create a new directive that when you have any tag with attribute bt-tooltip=”your message goes here” it should add bootstrap tooltip to the element. The tooltip message should have a !!! at the end of message.
(e.g. This is a paragraph
should show a tooltip with message “This is a tooltip!!!”or
List item should show a tooltip with message “Second tooltip!!!”)
I can easily add tooltip via bootstrap but want to add it like description above.especialy the part that you get the input from attribute like this <p bt-tooltip=”This is a tooltip”>
Right now my angular code looks like this
app.directive("bttooltip", function() { return { template : "<p>Made by a directive!<p>" }; });
What should i do?