I need an ALERT with growl by app service like explained belong:

This Controller is in another File: 

angular.module('unilab').controller('MainCtrl', function ($scope, $rootScope, 
$http, $location, $translate, $unilabSession, $unilabData, $state, 
tmhDynamicLocale, growl, $window, unialert) {
    $(document).on('click','.mob-button-aba', function(e){
        $state.go('operacao.entrada', {posto: this.dataset.posto, abaEntrada: 
this.dataset.aba}, { reload: true, inherit: true, notify: true });
    });



var app = angular.module('unicorp.angular', ['angular-growl']);

    app.config(['growlProvider', function(growlProvider) {
    growlProvider.globalPosition('top-right');
    growlProvider.globalTimeToLive({success: 3000, error: 1000, warning: 5000, 
info: 4000});
    growlProvider.globalDisableCountDown(true);

}]);



I don't know it's not running at all.


app.service('unialert', function() {


    this.error = function(growl)

    {
        return growl;
     }

});

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to