16 lines
467 B
JavaScript
16 lines
467 B
JavaScript
app.controller('BlogController',
|
|
['$scope', '$http', '$routeParams', 'auth', 'common',
|
|
function($scope, $http, $routeParams, auth, common){
|
|
|
|
common.init({
|
|
id: $routeParams.id,
|
|
scope: $scope,
|
|
type: 'blog_comments',
|
|
replyType: 'BlogComment',
|
|
loadCallback: function(data){
|
|
$scope.blog = data.data;
|
|
},
|
|
replyCallback: function(){
|
|
}
|
|
});
|
|
}]); |