Introduce base product page (#2687)
parent
b3e72383bc
commit
6ff2e0f952
@ -0,0 +1,18 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { DataService } from '@ghostfolio/client/services/data.service';
|
||||
|
||||
@Component({
|
||||
selector: 'gf-base-product-page',
|
||||
template: ''
|
||||
})
|
||||
export class BaseProductPageComponent implements OnInit {
|
||||
public price: number;
|
||||
|
||||
public constructor(private dataService: DataService) {}
|
||||
|
||||
public ngOnInit() {
|
||||
const { subscriptions } = this.dataService.fetchInfo();
|
||||
|
||||
this.price = subscriptions?.default?.price;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue