1
How can I call this function without having to create a button, for example:
My controller sends a notification to the html of {{error}} or {{Success}} and both are hidden and I want to customize this information before it is displayed
<div class="content" ng-controller="respostasController">
<div class="alert alert-danger" ng-show="error" class="ng-hide">
<span>{{error}} </span>
<button class="close" type="button" ng-click="close()">x</button>
</div>,
<div class="alert alert-success" ng-show="success" class="ng-hide">
<span>{{success}} </span>
<button class="close" type="button" ng-click="close()">x</button>
</div>
</div>
I want to take this information {{error}} and {{Success}} and customize it in the script below before displaying on the page
$('#clique').click(function(){
$.bootstrapGrowl("div 1",{
allow_dismiss: false,
type: 'danger'
});
$.bootstrapGrowl("div 2",{
allow_dismiss: false,
type: 'success'
});
});
If my div sees 1? Explain better what you want.
– Laerte
edited, I think I’ve been able to explain what I’ve been trying to do
– João