www.pudn.com > TeachingPlatform.zip > headerDirective.js, change:2016-11-21,size:355b


app.directive('headerDirective', function () { 
    return { 
        restrict: 'E', 
        templateUrl: 'view/directiveHtml/headerDirective.html', 
        replace: true, 
        controller:function ($scope,$http) { 
            $http.get("headerUrl").success(function (data) { 
                $scope.header=data 
            }) 
        } 
    } 
})