17 lines
513 B
JavaScript
17 lines
513 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;
|
|
$scope.is_public = data.is_public;
|
|
},
|
|
replyCallback: function(){
|
|
}
|
|
});
|
|
}]); |