Closed Mouradif closed 7 years ago
Hi @Mouradif could you provide a plunker sample of this?
Nevermind, just try this out instead:
$scope.menuOptions = [
{
// use a function wrapper to return the text
text: function() { return $filter('translate')("admin.invoice.DELETE"); },
click: function($itemScope, $event, modelValue, text, $li) {
// code here
}
}
]
If the translation is made after the page is loaded, if you don't put it in a wrapper function the old text will not change.
It works ! Thanks
Hi there,
Just a tiny issue here, everything is in the title, I have a
menuOption
array like this :But the text in the context menu stays the same as when the page was first loaded