Tomasz Chiossi
Tomasz Chiossi
theo4u it is works but throwing another issue with scope so I would not recommended that options as a fix. If for some reason you cannot downgrade angular to 1.5.x...
You can play around with width and height attributes. You can assign a function that return calculated value for these attributes based on your need aspect ratio.
I would take an api first and take control over .crop method. ` `this.getApi = (api) => { return this.api = api; };` Now I can use this.api.crop() anywhere I...
Or something like this: `` In your constructor you can return api: `this.getApi = (api) => { return this.api = api; }` Then add whatever you need to your controller...