Sunday, September 25, 2022

Angular Sign Out Condition

 Angular Sign Out Button Condition:





  app.component.html


 <button class="signout_button" (click)="signout()">sign out <button>

app.component.ts 

import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})

export class AppComponent implements OnInit {
 
 constructor(private router: Router) {}

  ngOnInit(): void {
  }
  signout(){
   
  }

}

how to call api in angular

                            Api Call in service file Making API calls is a common task in Angular applications, and it can be achieved using...