Home

Awesome

ng-iframe-resizer

This is a basic directive that wraps iFrame Resizer to be usable in Angular projects.

Installation

bower install ng-iframe-resizer --save

Instructions

How to use the ng-iframe-resizer directive in your Angular application:

<script src="[your bower_components folder]/iframe-resizer/js/iframeResizer.js" type="text/javascript"></script>
<script src="[your bower_components folder]/ng-iframe-resizer/dist/iframe-resizer.js" type="text/javascript"></script>
angular.module("app", ["ngIframeResizer"])
<script src="iframeResizer.contentWindow.min.js" type="text/javascript"></script>
<iframe src="http://anotherdomain.com/iframe.html" scrolling="no" ng-iframe-resizer></iframe>

License

Copyright © 2015 Joao Dias. Licensed under the MIT License.