Attach elements outside the transclusionFn.

DOM should be manipulated outside the transcludeFn, otherwise ng-click and other directives that are connected to outher scope won't work. For example:

<test>
	<div name="trans1">
		<button ng-click="button1()">button1</button>
	</div>

	<div name="trans2">
		<button ng-click="button2()">button2</button>
	</div>

	<div name="trans3">
		<button ng-click="button3()">button3</button>
	</div>
</test>

The first button won't respond to ng-click.