this is my html file:
<section data-ng-controller="myCtrl">
{{name}}
<button id="btn1">Button1</button>
</section>
this is my controller:
angular.module('users').controller('myCtrl', ['$scope',
function($scope) {
$scope.name="HELLO";
document.getElementById("btn1").addEventListener("click",function(){
$scope.name="changed";
});
}]);
the html file displays HELLO but it does not changes to "changed" on clicking the button. i am new to angular can someone please help me..