socialforge/public/javascripts/wechat/controllers/issue.js

16 lines
466 B
JavaScript

app.controller('IssueController', ['$scope', '$http', '$routeParams', 'auth', 'common', function($scope, $http, $routeParams, auth, common){
common.init({
id: $routeParams.id,
scope: $scope,
type: 'issues',
replyType: 'Issue',
urlName: 'issues',
loadCallback: function(data){
console.log(data);
$scope.issue = data.data;
},
replyCallback: function(){
}
});
}]);