Using ng-init to declare and initialize hasCoupon in the template rather than in JavaScript.