16 lines
466 B
JavaScript
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(){
|
|
}
|
|
});
|
|
}]); |