var myApp = angular.module('myApp', []); myApp.controller('MyCtrl', function ($scope) { document.getElementById('btn').onclick = function (e) { $scope.name = "Button clicked"; } });
<div ng-controller="MyCtrl"> <button id="btn" type="button">Click me</button> <div>{{name}}</div> </div>