Hu Newen, For the sake of this argument, yes, you can see it as the same. (technically, it isn't.)
Thing is, it easy enough to fetch a config, but usually one needs this during config/boot (before angular becomes active). At that time $http is'n usable yet. So you have to use what the browser provides. If you target modern browsers, you might use fetch. the goog old XMLHttpRequest is of coarse also available to you. I don't mind using XMLHttpRequest directly, but apparently that puts me in a minority ;) Regards Sander -- 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
