I have a problem on AngularJS, I have this service
GetLastPhase.get({
campaign_id: $stateParams.id,
lead_id : id,
relations: 'lead,workflow,tickets'
},
function (response) {
$scope.phaseDetails = response;
});
but when I call this service in HTML, I don't want to repeat the button add, do you have any solution how to ignore ng-repeat or how to send this leadTicket.id
parameter in another way
div(ng-show="wizard.active(3)")
.col-md-12
.crm-extend-add
a(ng-click="add(leadTicket.id)", ng-controller="CampaignTicketCtrl") {{ 'Add Ticket' | translate }}
.col-md-12.crm-form-group(ng-repeat="leadTicket in phaseDetails")
.crm-repeat(ng-repeat="ticket in leadTicket.tickets")
| This
a {{ leadTicket.id }}
| was created for
a(href='#') {{ leadTicket.lead.first_name }}
| at {{ leadTicket.workflow.name }}
.crm-expand-divider