2017-12-14 17:43:57 +01:00
|
|
|
import { Component, OnInit, Input } from '@angular/core';
|
2017-12-20 15:11:41 +01:00
|
|
|
import { Router } from '@angular/router';
|
2017-12-14 17:43:57 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-figurecard',
|
|
|
|
templateUrl: './figurecard.component.html',
|
|
|
|
styleUrls: ['./figurecard.component.css']
|
|
|
|
})
|
|
|
|
export class FigurecardComponent implements OnInit {
|
|
|
|
@Input() headerIcon: string;
|
|
|
|
@Input() category: string;
|
|
|
|
@Input() title: string;
|
|
|
|
@Input() footerIcon: string;
|
|
|
|
@Input() footContent: string;
|
|
|
|
@Input() linearColor: string;
|
|
|
|
@Input() boxShadow: string;
|
2017-12-20 15:11:41 +01:00
|
|
|
@Input() routelLink: string;
|
2018-03-01 10:14:10 +01:00
|
|
|
@Input() hasFootContent = true;
|
2017-12-20 15:11:41 +01:00
|
|
|
|
|
|
|
constructor(private router:Router) { }
|
2017-12-14 17:43:57 +01:00
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
}
|
|
|
|
|
2017-12-20 15:11:41 +01:00
|
|
|
navigateToUrl(){
|
|
|
|
this.router.navigate([this.routelLink]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-12-14 17:43:57 +01:00
|
|
|
}
|