I have an angularJS app which is leveraging bootstrap UI. I'm trying to set up some bootstrap tooltips, which have a large number of configurable elements. Rather than making my markup significantly larger than I'd prefer, I'd like to push the options into my controller.
The current markup looks something like this:
<p tooltip-placement="right" tooltip="{{bic.multipleIncomeTooltip()}}" tooltip-animation="true" tooltip-trigger tooltip-enable="bic.model.borrowers[bic.borrowerIndex()].income.hasMultipleEmployments"></p>
I would prefer to push the options for this into my controller, so the markup can be simplified to something like this:
<p tooltip-options="bic.incomeTooltipOptions" />
Is there a way to do this?