/**
 *
 */
angular.module("myApp", ["ui.router"]).config(function ($stateProvider, $urlRouterProvider, $locationProvider) {

    $locationProvider.hashPrefix('');
    //trở về trang mặc định
    $urlRouterProvider.otherwise("/employees");

    $stateProvider

        .state("layout1", {
            abstract: true,
            views: {
                "layout": {
                    templateUrl: "layout/layout1.html"
                }
            }
        })

        .state("layout2", {
            abstract: true,
            views: {
                "layout": {
                    templateUrl: "layout/layout2.html"
                }
            }
        })
        .state("layout3", {
            abstract: true,
            views: {
                "layout": {
                    templateUrl: "layout/layout3.html"
                }
            }
        })


        .state("employees", {
            parent: 'layout3',
            url: "/employees",
            views: {
                "content": {
                    templateUrl: "pages/employee/employee.html",
                    controller: "employeeController"
                }
            }
        })
        .state("project", {
            parent: 'layout3',
            url: "/project",
            views: {
                "content": {
                    templateUrl: "pages/project/project/projectListViews.html",
                    controller: "projectController"
                }
            }
        })
        .state("report", {
            parent: 'layout1',
            url: "/report",
            views: {
                "content": {
                    templateUrl: "pages/employee/project.html",
                    controller: "employeeController"
                }
            }
        })

        .state("testlayout2", {
            parent: 'layout2',
            url: "/testttt",
            views: {
                "content": {
                    templateUrl: "pages/testlayout/testlayout.html",
                    controller: "testlayoutController"
                }
            }
        })

});
