﻿(function () {
    'use strict';

    angular.module('vnext-example').config(function ($stateProvider, $urlRouterProvider) {
        //
        // For any unmatched url, redirect to /state1
        $urlRouterProvider.otherwise("/");
        // 
        // Now set up the states
        $stateProvider
            .state('start', {
                url: "/",
                views: {
                    'main':
                    {
                        templateUrl: "partials/start.html",
                        controller: "ExampleController as vm"
                    },
                    'title': {
                        template: 'landingpage'
                    }
                }
            });
    });
})();