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