Welcome aboard! We are happy you are here and wish you good net-raft!
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="//code.angularjs.org/snapshot/angular.min.js "></script>
</head>
<body ng-app="getip">
<div ng-controller="myip">
<div>{{mydiv}}</div></br>
<button ng-click="myclick()">myclick</button>
<script>
angular.module('getip', [])
.controller('myip', ['$scope', function ($scope) {
$scope.mydiv = "text";
$scope.myclick = function () {
alert($scope.mydiv);
}
} ]);
</script>
</div>
</body>
</html>
The most helpful ANGULARJS solutions