import { Component } from "@angular/core";
import { TickTockService } from "../../services";
var TickTockComponent = (function () {
    /**
     * Component constructor with injected dependencies.
     * @param tickTockService
     */
    function TickTockComponent(tickTockService) {
        this.tickTockService = tickTockService;
    }
    /**
     * Implements onInit event handler.
     */
    TickTockComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.tickTockService.getTick().subscribe(function (timeString) { return _this.currentTime = timeString; });
    };
    return TickTockComponent;
}());
export { TickTockComponent };
TickTockComponent.decorators = [
    { type: Component, args: [{
                selector: "tick-tock",
                styles: ["\n    @import url(\"https://fonts.googleapis.com/css?family=Roboto:100\");.tick-tock-time{font-size:2em;font-family:'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif}\n  "],
                template: "\n    <div class=\"tick-tock-time\">\n      {{ currentTime }}\n    </div>\n  ",
            },] },
];
/** @nocollapse */
TickTockComponent.ctorParameters = function () { return [
    { type: TickTockService, },
]; };
//# sourceMappingURL=tick-tock.component.js.map