Your $scope
will be already either within a <script>
block or in a Javascript file.
Now, when/how do you want the alert
to be called? If I understand correctly what you're trying to do, here's how to do it:
<div ng-click="doAlert()"> Click here to see an alert</div>
and in your controller:
$scope.doAlert = function() { alert('hi);};