I'm trying to get the pageTitle to initialise to data.products[whichItem].date if condition is true or pageTitle = data.products[whichItem].valuetoday if condition is false is there an ng-directive more appropriate or is my syntax wrong
<section ng-bind="(true) '{{pageTitle = data.products[whichItem].date |
getYear}}' : '{{pageTitle = data.products[whichItem].valuetoday}}' " ></section>