You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trustieforge/public/javascripts/wechat/controllers/blog.js

26 lines
641 B

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,replytype,page){
console.log(data.data);
if (replytype == 0 && page == 0 ) {
$scope.blog = data.data;
}
else{
}
},
replyCallback: function(){
}
});
}]);