Angular-js Automatically Resize Iframe When DOM Content Changes

In my project, I have to use an iframe and I need that its height is automatically calculated based on its content.

My code look like this

<iframe id='iframe' width='100%' height='600px' src='http://test.com' />

How do I set the iframe content height through my controller or directive?

Thanks!