2017-05-28 02:53:12 -04:00
|
|
|
import { Component } from "@angular/core";
|
2017-12-24 04:02:57 -05:00
|
|
|
import { ScalarClientApiService } from "../../shared/services/scalar/scalar-client-api.service";
|
2017-05-28 02:53:12 -04:00
|
|
|
|
|
|
|
@Component({
|
2017-08-27 01:26:00 -04:00
|
|
|
selector: "my-scalar-close",
|
|
|
|
templateUrl: "./scalar-close.component.html",
|
|
|
|
styleUrls: ["./scalar-close.component.scss"],
|
2017-05-28 02:53:12 -04:00
|
|
|
})
|
|
|
|
export class ScalarCloseComponent {
|
|
|
|
|
2017-12-20 23:28:43 -05:00
|
|
|
constructor(private scalar: ScalarClientApiService) {
|
2017-05-28 02:53:12 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
public closeScalar() {
|
2017-12-23 20:47:41 -05:00
|
|
|
console.log("Closing scalar...");
|
2017-05-28 02:53:12 -04:00
|
|
|
this.scalar.close();
|
|
|
|
}
|
|
|
|
}
|