What is the difference between AngularJS $window.alert() and Javascript alert()? -
It looks like AngularJS $ window.alert () and JavaScript Alert () are the same. Under what circumstances should we use them? Or is there any difference at all?
this is exactly the same - in the global way browser in javascript) $ Window: Reference to Browser's Window Object Note that you override the window The methods are the AngularJS 'nickname for the'
window object.
$ window for your tests But both are similar in regular code.
Comments
Post a Comment