Open Remco75 opened 7 years ago
oh a 3rd way, do not expose the derrived metatags directly on the Metatag service but rather in an obeject that you put on the service, and we put that on the rootScope
Either solution works, feel free to create a pull request
The Metatags service exposes the $window service on its object. When the implementing app puts the Metatags service on the $rootScope the whole window object is in turn exposed on the $rootScope.
This feels like a big scope pollution, and might have performance impact. as far as I can see there are 2 solutions