Use $transclude in controller to remove unnecessary link functions.