Hi, I was wondering how exactly I would override something globally to the app. For instance, if I want to override the $window.alert to another function for the entire application, how could I do that? I'm trying this with little luck:
var my_module = angular.module('App', ['App.1, 'App.2]);
my_module.config(function($routeProvider, $windowProvider) {
$windowProvider.alert=my_alert_func;
});
Thanks in advance!
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/sC1RCkavtdsJ.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.