AngularJS Example:

HTML

<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<div ng-app="helloApp">
    <div ng-controller="SpicyController">
     <button ng-click="chiliSpicy()">Chili</button>
     <button ng-click="jalapenoSpicy()">Jalapeño</button>
     <p>The food is {{spice}} spicy!</p>
    </div>
</div>

JavaScript

angular.module('helloApp', [])
    .controller('SpicyController', function($scope) {
        $scope.spice = 'very';
    
        $scope.chiliSpicy = function() {
            $scope.spice = 'chili';
        };
    
        $scope.jalapenoSpicy = function() {
            $scope.spice = 'jalapeño';
        };
    });