Added possibility to replace only the link text by the provided html …
…+ added compile option, to support translations.
Seems to look alright. I'll test it out in a little while. In the meantime, please check out some of the minor comments above.
Also, what is the issue related to this?
Hi, I restyled the curly braces. The reason I did them that way is to make it more readable, as it was getting cramped with code.
As for what issue: none actually, I didn't made one, but I had some functionality added:
- We needed to have an icon before a menu item, but inside the original link tag, not completely replacing the item
- We needed to use translations with the menu items, so compilation is needed (also for the icon)
So for example, I need the following html inside the link tag:
<span data-ng-include="'/icons/add.svg'"></span> <span>{{::'ACTION.ADD' | translate}}</span>
This feature definitely must be part of the master brach