/
token-sale.component.ts
29 lines (24 loc) · 1.15 KB
/
token-sale.component.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { ConfigurationService } from '../Services/configuration.service'
import { Component, OnInit } from '@angular/core'
import { dom, library } from '@fortawesome/fontawesome-svg-core'
import { faBitcoin } from '@fortawesome/free-brands-svg-icons'
import { faCommentAlt, faComments, faGraduationCap, faUniversity } from '@fortawesome/free-solid-svg-icons'
import { faCommentAlt as farCommentAlt, faComments as farComments } from '@fortawesome/free-regular-svg-icons'
library.add(faBitcoin, faUniversity, faGraduationCap, faCommentAlt, faComments, farCommentAlt, farComments)
dom.watch()
@Component({
selector: 'app-token-sale',
templateUrl: './token-sale.component.html',
styleUrls: ['./token-sale.component.scss']
})
export class TokenSaleComponent implements OnInit {
public altcoinName = 'Juicycoin'
constructor (private configurationService: ConfigurationService) { }
ngOnInit () {
this.configurationService.getApplicationConfiguration().subscribe((config: any) => {
if (config && config.application && config.application.altcoinName) {
this.altcoinName = config.application.altcoinName
}
}, (err) => console.log(err))
}
}