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