fix if/when

You can not change the use of `{{}}`/`ngBind` based on the time when it is used. So this should be "if".