Skip to content

Instantly share code, notes, and snippets.

Created September 13, 2018 10:48
What would you like to do?
import { Component, Inject } from '@angular/core';
import { ButtonChildComponent } from '@app/shared/buttons/button-child-component';
import { SquareButtonTypes } from '@app/shared/buttons/square-button/square-button-types';
import { SquareButtonComponent } from '@app/shared/buttons/square-button/square-button.component';
selector: 'app-primary-button',
templateUrl: './primary-button.component.html',
styleUrls: ['./primary-button.component.css']
export class PrimaryButtonComponent
extends ButtonChildComponent<SquareButtonTypes> {
constructor(@Inject(SquareButtonComponent) parent: SquareButtonComponent) {
this.parent = parent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment