angular.module('myApp', [])
.config(function ($stateProvider) {
$stateProvider
.state('main', {
url: '/',
controller: 'MainController as MC',
templateUrl: '/path/to/template.html'
})
}).
controller('MainController', function () { … });