Added onResize method.  You can set the attribute `on-resize` and when the resize happens, the method defined on the scope will be called.