What Is config function? The RequireJS can be initialized by passing the main configuration in the HTML template through the data-main attribute. If you want to update the RequireJS configuration values with your own configurations value. You can do using the requirejs.config function. The configurations options - ü config - This is for configuration to a module by using the config option ü baseUrl -This is the root path to start the loading of modules. ü paths - this is the path mapping for modules that don’t exists in under the base URL. ü Shims - This is use for configuration for dependencies. ü deps - array of dependencies to load ü map - ü urlArgs -This is the query string arguments are used to fetch all resources that are loaded by using RequireJS. ü callback -It executes a function after loading the dependencies and is requir...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers