angular.js:13424 Error: [ng:areq] Argument 'DemoCtrl123' is not a function, got undefined
<p>Hi I am just starting out with Angularjs have included following snippets in my index.html file(Django framework)  but it's giving me an error that controller is not a function. Kindly please help me fix this. I am using angular 1.5.3    </p>

<pre><code>index.html(Django framework) :
    &lt;head&gt;
    &lt;script&gt;
    app = angular.module('demoapp123', []);
    console.log("inside script....");
    app.controller('DemoCtrl123', ['$scope', function($scope) {
        $scope.num = "222";
        console.log("inside controller....");
    }]);
    &lt;/script&gt;
    ..........
    &lt;/head&gt;


    &lt;body&gt;
    {% verbatim %}
    &lt;div ng-app="demoapp123"&gt;
    &lt;div ng-controller="DemoCtrl123"&gt;
    &lt;p&gt;"Angular+controller"&lt;/p&gt;
    &lt;p&gt;{{num}}&lt;/p&gt;
    &lt;/div&gt;
    &lt;/div&gt;
    {% endverbatim %}
    &lt;/body&gt;
</code></pre>