Added data to scope.$emit. Added scope.$apply() to get changes on elementClick.