app.controller('CourseNoticeController', ['$scope', '$http', '$routeParams', 'auth', 'common', function($scope, $http, $routeParams, auth, common){ common.init({ id: $routeParams.id, scope: $scope, type: 'newss', replyType: 'News', urlName: 'course_notice', loadCallback: function(data){ $scope.news = data.data; $scope.is_public = data.is_public; }, replyCallback: function(){ } }); }]);