Another example of Ng-Controller, We have created two methods in the controller and calling them on ng-click and that way the selection will be displayed in P tag. See the example

<!DOCTYPE html> <html xmlns=""> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src=""></script> <link rel="stylesheet" href=""> </head> <body ng-app="app"> <div ng-controller="controller"> <div class="container"> <br /> <button class="btn btn-default" ng-click="chiliSpicy()">Chili</button> <button class="btn btn-primary" ng-click="notChiliSpicy()">Not Chili</button><br /> <p>The food is <b>{{spice}}</b> spicy!</p> </div> </div> </body> </html> <script> var app = angular.module('app', []); app.controller('controller', function ($scope) { $scope.chiliSpicy = function () { return $scope.spice = "Chili"; }; $scope.notChiliSpicy = function () { return $scope.spice = "Not Chili"; }; }); </script>