1angular.module('myApp', [])
2.config(function ($stateProvider) {
3 $stateProvider
4 .state('main', {
5 url: '/',
6 controller: 'MainController as MC',
7 templateUrl: '/path/to/template.html'
8 })
9}).
10controller('MainController', function () { … });
11