You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
495 B

  1. /*
  2. * Slim v3.1.1 - Image Cropping Made Easy
  3. * Copyright (c) 2016 Rik Schennink - http://slim.pqina.nl
  4. */
  5. import { Component, Input, ElementRef, OnInit } from "@angular/core";
  6. import Slim from './slim.module.js';
  7. @Component({
  8. selector: 'slim',
  9. template: '<ng-content></ng-content>'
  10. })
  11. export default class {
  12. @Input() options: Object;
  13. constructor(private el:ElementRef) {}
  14. ngOnInit():any {
  15. this.instance = Slim.create(this.el.nativeElement, this.options);
  16. }
  17. };