I just can't understand what I did Wrong
require(['jquery'],
function($){
function main() {
console.log("test");
}
return main;
});
I just can't understand what I did Wrong
require(['jquery'],
function($){
function main() {
console.log("test");
}
return main;
});
just try this one, it works fine for me by removing the parentheses that is surrounding the function
require['jquery'],
function($){
function main() {
console.log("test");
}
return main;
};