Update esriLegend.js
Update esriLegend.js

This update uses scope.$watchCollection to watch map.layerInfos for changes and refresh the legend appropriately.
Kollibri/angular-esri-map,Esri/angular-esri-map,tomwayson/angular-esri-map,Esri/angular-esri-map,Kollibri/angular-esri-map,Kollibri/angular-esri-map,tomwayson/angular-esri-map,tomwayson/angular-esri-map,Esri/angular-esri-map