/* global angular, random */
angular.module("app").config([
    '$stateProvider',
    function ($stateProvider) {
        $stateProvider.state('main.tag_asignar', {
            url: '/tag/:tag_id/asignar',
            templateUrl: 'templates/tags/tag-asignar.html' + random,
            controller: 'TagAsignarCtrl',
            resolve: {
                loadMyCtrl: [
                    '$ocLazyLoad',
                    function ($ocLazyLoad) {
                        return $ocLazyLoad.load([
                            'js/controllers/tags-controllers.js' + random,
                            'js/services/tags-services.js' + random,
                            'js/services/numeros-economicos-services.js'
                        ]);
                    }
                ]
            }
        });
    }
]);