Every line of 'angular moment cdn' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
13 function runRegisterMoment($window) { 14 15 function registerMoment(moment) { 16 $window.moment = moment; 17 } 18 19 if (angular.isUndefined($window.moment) && typeof define === 'function' && define.amd) { 20 require(['moment'], registerMoment); 21 } 22 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
16 export function momentAdapterFactory() { 17 return adapterFactory(moment); 18 }