|
123456789101112131415 |
- 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',
- loadCallback: function(data){
- console.log(data);
- $scope.issue = data.data;
- },
- replyCallback: function(){
- }
- });
- }]);
|