Add share() method to view factory contract.
Fix syntax.
Merge pull request #5774 from franzliedke/patch-7

Add share() method to view factory contract