internationalization - Can a ternary be used with i18n in an AngularJS template? -


normal ternary use in angular template:

{{ ison ? 'meow' : 'woof' }} 

simple question, work i18n?

{{ ison ? 'meow' : 'woof' | i18n }} 

the string data type not affected, result same normal. i18n spec converts following types:

  • number object
  • date/time data
  • empty date/time object

references


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -