fix(uiView): Refactoring uiView directive to copy ngView logic

Use the linking function element instead of the template element when setting the parent.

Fixes issue #857