(function () {
    'use strict';

    angular.module('components.team-view', [])
        .directive('teamView', teamView);

    teamView.$inject = ['$log'];
    function teamView($log) {
        var teamView = {};
        teamView.restrict='E';
        teamView.transclude=true;
        teamView.scope={};
        teamView.bindToController= {
            teamid: '='
        };
        teamView.controller = teamCtrl;
        teamView.controllerAs ='tv';
        teamView.templateUrl = 'app/components/team-view/team-view.html';
        return teamView;
    }
    
    teamCtrl.$inject = ['$log', 'Team'];
    function teamCtrl($log, Team) {
        var tv = this;
        tv.team = Team;
    }
})();




