I have to create an AngularJS module containing a directive and a service that use moment.js.
Is there a way to load this library when the module is injected as dependency ?
The goal is to load moment.js when the application inject the module as a dependency, and avoiding any pairing between the final application and the vendor script.
(I know that angular-moment exists, I have similar problem with other libs)
Aucun commentaire:
Enregistrer un commentaire