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 The methods are the AngularJS 'nickname for the' window object.

$ Window: Reference to Browser's Window Object

Note that you override the $ window for your tests But both are similar in regular code.

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -