footer.component.ts 849 B

123456789101112131415161718192021222324252627282930313233
  1. import { AuthServiceService } from './../../shared/auth-service.service';
  2. import { Component, OnInit } from '@angular/core';
  3. @Component({
  4. selector: 'app-footer',
  5. templateUrl: './footer.component.html',
  6. styleUrls: ['./footer.component.css']
  7. })
  8. export class FooterComponent implements OnInit {
  9. sectionLinks = [];
  10. awardsData = [];
  11. socialLinks = [];
  12. constructor(private authSer: AuthServiceService) { }
  13. ngOnInit() {
  14. this.authSer.onGetFooterData().subscribe(
  15. (responce) => {
  16. console.log(responce);
  17. this.sectionLinks = responce['footer']['links_section'];//
  18. this.awardsData = responce['footer']['awards_section'];//
  19. this.socialLinks = responce['footer']['socials_section'];
  20. console.log(this.sectionLinks);
  21. },
  22. (error) => {
  23. console.log(error);
  24. }
  25. )
  26. }
  27. }