Leaflet by default don’t provide rotation for the Icon on map, I used Marker.Rotate plugin for it.
Compared to Openlayers example calculation of Arrow icon rotation are bit different and are done as per the Leaflet.js and Marker.Rotate plugin
The complete code can be found in this fiddle. Hope it helps!!