You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.factory('Notify',function($rootScope,notify){functionopenNotify(notifyMessage,notifyClass){varpositions=['center','left','right'],position=positions[2],duration=10000;notifyClass=notifyClass||'alert-info';returnnotify({message: notifyMessage,classes: notifyClass,templateUrl: 'components/notify/notify.html',position: position,//not respect right, show left every timeduration: duration});}// Public API herereturn{notifycation: {show: function(callback){callback=callback||angular.noop;returnfunction(){varargs=Array.prototype.slice.call(arguments),text=args.shift(),customClass=args.shift(),showNotify;showNotify=openNotify(text,customClass);//callback.apply(event, args);//for future};}}};});
I use notify as factory.
And i call from controller
The text was updated successfully, but these errors were encountered: