Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
angularjs のドキュメントは、このような独自のモジュールのサービスを作成する方法を示しています
angular.module("mymodule", []).service("myService", service);
私の質問は、 $http のようなコアサービスのようなサービスを作成するにはどうすればよいですか? 以下を試してみましたが、うまくいきませんか?
angular.module("ng").service("$http2", service);
ありがとう
モジュールのスペルが間違っていますが、正常に動作しています
デモ:フィドル