title: Assigning separate controller files in AngularJS's UI Router
body: <p>I am new to AngularJS and AngularJS's UI Router. I have a basic index.html file in which I inject the views. And then I have app.js with the routes inside, a template client.html and a controller about that template called clientContoller.js I am trying to figure out how to assign to the controller of the $stateProvider.state the controller file clientController.js like for example in the code below.</p>
  
  <pre><code>$stateProvider.state('client', {
      url: '/client',
      templateUrl: 'client.html',
      controller: 'clientController.js',
      controllerAs: 'client'
  });
  </code></pre>