what is difference between import and require

 One of the major differences between require() and import() is that require() can be called from anywhere inside the program whereas import() cannot be called conditionally, it always runs at the beginning of the file. To use the require() statement, a module must be saved with . js extension as opposed to 

No comments:

Post a Comment

Advanced Angular Methods & Real-World Scenarios

  1.  ViewChild  /  ViewChildren Purpose : Access DOM elements or child components programmatically. Scenario : Video player controls in a m...

Best for you