Last active
September 1, 2022 18:34
-
-
Save mailtodanish/d41012bfe37dc53fc801d09eec674306 to your computer and use it in GitHub Desktop.
Asynchronous Module Definition Samlple
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define(['dep1', 'dep2'], function (dep1, dep2) { | |
| //Define the module value by returning a value. | |
| return { | |
| testMethod: function(){ | |
| console.log('testMethod') | |
| } | |
| } | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment