**Html code:**

```
<div class="container" ng-controller="aditya"></div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="controllers/controller.js"><script>

```

**And calling it in controller.js file**

```
function aditya() {
console.log("Hello World from controller")}

```