angularjs - Angular strap show list of errors -
is possible show list of errors (comma separated array) in angular strap alerts problematically or html?
i didn't find way that.
$scope.errors = response.split(','); var myalert = $alert({ title: 'title', content: '-----------', placement: 'top', type: 'success', duration: '1', show: true });
since array created comma delimited string ...just pass in original string
var myalert = $alert({ title: 'title', content: response, placement: 'top', type: 'success', duration: '1', show: true }); or bit more separation use $scope.errors.join(', ');
Comments
Post a Comment