The output name does not contain a space(" ") even though I put a space before it.
It is not Angular, however it's behavior of the HTML specification:
In particular, user agents should collapse input white space sequences when producing output inter-word space.
If you want to preserve whitespace in output, you can use the <pre>
tag:
<ng-template pTemplate="output">
<pre>{{rowData.name}}</pre>
</ng-template>
You can read more about pre
tag here at w3.org docs.