2017-02-22 18:13:21 +00:00
|
|
|
// #docregion
|
2020-07-30 13:03:09 +03:00
|
|
|
import { Injectable } from '@angular/core';
|
2017-02-22 18:13:21 +00:00
|
|
|
|
2020-07-30 13:03:09 +03:00
|
|
|
import { HeroJobAdComponent } from './hero-job-ad.component';
|
2017-02-22 18:13:21 +00:00
|
|
|
import { HeroProfileComponent } from './hero-profile.component';
|
2020-07-30 13:03:09 +03:00
|
|
|
import { AdItem } from './ad-item';
|
2017-02-22 18:13:21 +00:00
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export class AdService {
|
|
|
|
getAds() {
|
|
|
|
return [
|
|
|
|
new AdItem(HeroProfileComponent, {name: 'Bombasto', bio: 'Brave as they come'}),
|
|
|
|
|
|
|
|
new AdItem(HeroProfileComponent, {name: 'Dr IQ', bio: 'Smart as they come'}),
|
|
|
|
|
|
|
|
new AdItem(HeroJobAdComponent, {headline: 'Hiring for several positions',
|
|
|
|
body: 'Submit your resume today!'}),
|
|
|
|
|
|
|
|
new AdItem(HeroJobAdComponent, {headline: 'Openings in all departments',
|
|
|
|
body: 'Apply today'}),
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|