"use strict"; (function () { 'use strict'; angular.module('customWidgetsModule').directive('personLocationMap', ['customFieldLinkFunction', 'googleMapService', function (customFieldLinkFunction, googleMapService) { return { restrict: 'E', replace: true, scope: { data: '=' }, templateUrl: 'views/custom-widgets/person-location-map.html', link: function (scope) { customFieldLinkFunction(scope); scope.googleMapAvailable = googleMapService.isAvailable; scope.$watch('data.setValueFlag', function (value) { if (value !== '#$#' && value) { //TODO: Set the values after provider action works scope.data.setValueFlag = '#$#'; } }); } }; }]); }());