title: AngularJS' ng:areq Bad Argument "{controller} is not a function", with textAngular on CodeIgniter
body: <p>I'm trying to implement a text editor with textAngular in a CodeIgniter view, but it keep returning this error:</p>
  
  <pre>
  angular.js:13424 Error: [ng:areq] Argument 'wysiwygeditor' is not a function, got undefined
  http://errors.angularjs.org/1.5.3/ng/areq?p0=wysiwygeditor&p1=not%20a%20function%2C%20got%20undefined
  </pre>
  
  <p>Where 'wysiwygeditor' is the name on <code>ng-controller</code>.</p>
  
  <p>I've found tens of questions about that, and all seems to be caused by the same mistakes:</p>
  
  <ul>
  <li>Unnamed <code>ng-app</code> directive</li>
  <li>Omitted second argument on module    definition
  <code>angular.module('myApp', [])</code></li>
  <li>Version incompatibilities on controller declaration  </li>
  </ul>
  
  <p>None of those happens to be the problem, and I'm simply copying a code that already works. It's the <code>demo.html</code> from <a href="http://textangular.com/" rel="nofollow">textAngular-1.5.0</a>. I copy the code to a CodeIgniter view, include all the <a href="https://github.com/fraywing/textAngular/wiki/Getting-Started" rel="nofollow">required</a> libraries, but still get the error. Then I noticed it's happening whenever I declare a controller with Angular JS.</p>
  
  <p>To make a better example:</p>
  
  <pre><code>&lt;script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.3.11/angular.min.js'&gt;&lt;/script&gt;
  &lt;div ng-app="myApp"&gt;
      &lt;div ng-controller="GreetingController"&gt;
          {{greeting}}
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;script&gt;
      var myApp = angular.module('myApp',[]);
  
      myApp.controller('GreetingController', ['$scope', function($scope) {
        $scope.greeting = 'Bom dia!';
      }]);
  &lt;/script&gt;
  </code></pre>
  
  <p>This code gives that error on CodeIgniter, but if I put it in a simple html file, works normally.</p>