# All files / app/common/footer footer.component.ts

100% Statements 9/9
100% Branches 0/0
100% Functions 1/1
100% Lines 7/7

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
    182x
    2x

    2x
    5x
    5x

    1x
    1x

     import { Component } from '@angular/core';
    import { MatIcon } from '@angular/material/icon';

    @Component({
      selector: 'app-footer',
      templateUrl: './footer.component.html',
      styleUrls: ['./footer.component.css'],
      imports: [MatIcon],
    })
    export class FooterComponent {
      readonly phoneNumber = '+919264092640'; // Replace with actual PNB WhatsApp number
      readonly message = 'Hello! I would like to know more about PNB Credit Cards.';

      openWhatsApp(): void {
        const url = `https://api.whatsapp.com/send?phone=${this.phoneNumber.replace('+', '')}&text=${encodeURIComponent(this.message)}`;
        window.open(url, '_blank', 'noopener,noreferrer');
      }
    }