I'm trying to create a new angularjs controller and this error just don't want to dissapear:

```
Argument 'AppController' is not a function, got undefined

```

My code:

```
var app = angular.module('myApp', [])
.controller('AppController', function($scope) {
    $scope.data = 'Hello';
});

```

app.html.twig

```
<div ng-app="myApp">
<div ng-controller="AppController">
    <h1> {{'{{ data }}' }}</h1>

</div>

```

I really don't understand what am I missing. I ve searched for this error, and I tried the solutions presented but I can not resolve it. Any ideas?