Monday, 28 June 2021

grab data from query param angular

  


http://localhost:4200/productList?cityName=Armoor&organization=All

1.get cityname and organizaionname

 this.activatedRoute.queryParams.subscribe(params => {

          let date = params['cityName'];
          let org = params['organization'];
          console.log(date); // Print the parameter to the console.
      });

No comments:

Post a Comment

7 Common mistakes in Dot Net — You can avoid

  There are many common mistakes made during .NET (ASP.NET, .NET Core) development, which affect performance, security, and code… Code Crack...