In AngularJS $log
is used to display message in browser console and there are four type of log messages: a) error b) log c) warn d) info. Example will show all for type of log and these error will show in console window. You can open console by pressing F12 in google chrome. See the code snippet: