Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created September 13, 2018 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lydemann/288ac6143b4639e87ece71ba53d33aef to your computer and use it in GitHub Desktop.
Save lydemann/288ac6143b4639e87ece71ba53d33aef to your computer and use it in GitHub Desktop.
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';
@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) {
super();
this.parent = parent;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment