Zizzamia / ng-tasty

A tasty collection of reusable UI components for Angular, like grandma used to make. Like Table directive, WebSocket / Debounce / Throttle service, Range / Camelize / Slugify filters
MIT License
435 stars 64 forks source link

Translate header #210

Open alfredobarron opened 8 years ago

alfredobarron commented 8 years ago

How to use angular-translate in header table in ng-tasty?

studentIvan commented 8 years ago

Maybe u can do it manual right into your controller?

alfredobarron commented 8 years ago

I did it like that, but I want know if exist best way

wandroll commented 8 years ago

I'd use a custom template for the header : <thead tasty-thead template-url="app/templates/custom-thead.tpl.html"></thead>

Assuming you're using angular-translate : Your template should look like the default template but you'll have to replace ng-bind with translate directive : `

`