16 lines
457 B
JavaScript
16 lines
457 B
JavaScript
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',
|
|
loadCallback: function(data){
|
|
$scope.news = data.data;
|
|
},
|
|
replyCallback: function(){
|
|
}
|
|
});
|
|
|
|
}]); |