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.
複数のモジュールに同じ名前のファクトリがある場合、最後のモジュールが勝つようです。jsfiddle
fooBarで工場に名前を付けるための規則、foo2Barまたはfoo.bar foo2.bar名前の競合を避けるための規則を提案する投稿を見てきました
fooBar
foo2Bar
foo.bar
foo2.bar
ただし、各ファクトリにモジュール名のプレフィックスを付けることは、私にはかなり醜いようです。他のより良い方法はありますか、またはモジュールに対してのみローカルなプライベート サービスを使用する方法はありますか?