Angularjs Template Default Value if Binding Null / Undefined (With Filter)
I have a template binding that displays a model attribute called ‘date’ which is a date, using Angular’s date filter. <span class=”gallery-date”>{{gallery.date | date:’mediumDate’}}</span> So far so good. However at the moment, if there is no value in the date field, the binding displays nothing. However, I would like it to display the string ‘Various’ … Read more