sebaferreras / Ionic3-MultiLevelSideMenu

Ionic 3 demo of a two-level side menu.
MIT License
136 stars 55 forks source link

how to set a display name in menu using a variable.... #24

Closed tejas008 closed 6 years ago

tejas008 commented 6 years ago

Thanks for your support all the way..I am trying to set a display name to menu using a variable...I am using ng2-translate ...as per selected language i want to set a display name.I am quiet confused or if i may using it in wrong way..but when i set the variable to display name it show nothing in side menu..please correct me ...its urgent.....thanks in advance This is my code capture 1

this code give me following output capture 2

sebaferreras commented 6 years ago

What is the output of console.log(res)?

Anyway, I think that instead of doing things in that way, you can send the translation key as the displayName (would be "Dashboard" in your end, right?) and then add the translate pipe in the html code:

translate

Let me know if that works or we should handle it in a different way.

Btw, I'll add support for ng2-translate soon :)

phpweb commented 6 years ago

I am also waiting for the ng2-translate support!

sebaferreras commented 6 years ago

I'll close this issue since using the translate pipe in the view should fix it for now until we add support for ngx-translate. Feel free to re-open it if you need any help.

Thanks :)