Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 69x 10x 9x | import { Component, OnInit } from '@angular/core';
import { NgIf } from '@angular/common';
import { TableModule } from 'primeng/table';
import { TwinpadApiService } from '../../services/twinpad-api.service';
import { LoaderComponent } from '../loader/loader.component';
import { Campaign } from '../../models/campaign';
import { RouterModule } from '@angular/router';
@Component({
selector: 'app-campaigns',
imports: [TableModule, NgIf, LoaderComponent, RouterModule],
templateUrl: './campaigns.component.html',
styleUrl: './campaigns.component.scss'
})
export class CampaignsComponent implements OnInit {
campaigns: Campaign[];
constructor(private twinpadApiService: TwinpadApiService, ){}
ngOnInit(): void {
this.twinpadApiService.getCampaigns().subscribe(value => {this.campaigns=value;});
}
}
|