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
Post a Comment