'use strict';

/**
 * @ngdoc overview
 * @name webappApp
 * @description
 * # webappApp
 *
 * Main module of the application.
 */
angular
    .module('webappApp', [
        'ngAnimate',
        'ngCookies',
        'ngResource',
        'ngRoute',
        'ngSanitize',
        'ngTouch',
        'ngMaterial'
        ,'tjsView'
    ])
    .config(function ($routeProvider) {
        $routeProvider
            .when('/', {
                templateUrl: 'views/main.html',
                controller: 'MainCtrl',
                controllerAs: 'main'
            })
            .when('/about', {
                templateUrl: 'views/about.html',
                controller: 'AboutCtrl',
                controllerAs: 'about'
            })
            .when('/contacts', {
                templateUrl: 'views/contacts.html',
                controller: 'ContactsCtrl',
                controllerAs: 'contacts'
            })
            .when('/tryit', {
                templateUrl: 'views/tryit.html',
                controller: 'TryitCtrl',
                controllerAs: 'tryit'
            })
            .when('/dynamic', {
              templateUrl: 'views/dynamic.html',
              controller: 'DynamicCtrl',
              controllerAs: 'dynamic'
            })

            .otherwise({
                redirectTo: '/'
            });
    });
