Edit in JSFiddle

function GreetController() {
  this.name = 'Mister Awesome'
  this.greet = function() {
    alert(this.name)
  };
}

angular.module('MyApp', [])
  .controller('GreetController', [GreetController]);


// bootstraping the app
angular.element(document).ready(function() {
  angular.bootstrap(document, ['MyApp']);
})
<div class="container jumbotron">
  <div ng-controller="GreetController as $ctrl">
    <button class="btn btn-success" ng-click="$ctrl.greet()">
      Click Me
    </button>
  </div>
</div>