{"size": 1025, "ext": "js", "max_stars_repo_path": "src/app/assessment/assessment.js", "max_stars_repo_name": "ThierryTouin/AngularJSVrac", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/app/assessment/assessment.js", "max_issues_repo_name": "ThierryTouin/AngularJSVrac", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/app/assessment/assessment.js", "max_forks_repo_name": "ThierryTouin/AngularJSVrac", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 37.962962963, "max_line_length": 136, "alphanum_fraction": 0.5365853659}
(function(){
    'use strict';
    angular.module('assessments',[
        'assessments.creation',
        'assessments.list'
    ]).config(function($stateProvider){
        //ici l'état est abstract du coup on ne pourra pas s y rendre directement mais il sert de parents pour d'autres états ( layout )
        $stateProvider.state('assessments',{
            abstract: true,
            views:{
                main: {
                    templateUrl: 'assessment/assessment.tpl.html',
                    controller: 'AssessmentController',
                    controllerAs: 'ctrl'
                }
            }
        });
    }).controller('AssessmentController',function($mdSidenav,$log){
        //$mdSidenav est fourni par ngMaterial et permet d'animer les directives md-sidenav ( menu lateral )
        this.toggleSideNav = function(){
            $mdSidenav('assessment').toggle()
                .then(function(){
                    $log.debug("toggle RIGHT is done");
                });
        };
    });
})();