/path></svg></a>Examples</h2>

<p>The following patterns are considered problems;</p>

<pre><code class="javascript hljs"><span class="hljs-comment">/*eslint angular/no-controller: 2*/</span><br><br><span class="hljs-comment">// invalid</span><br>angular.module(<span class="hljs-string">'myModule'</span>).controller(<span class="hljs-string">'HelloWorldController'</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">$scope</span>) </span>{<br>    $scope.t