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

API run block issue run api from cmd

  ✅ Debug Checklist – “Access is Denied” (.NET / Visual Studio) 🔹 Identify Problem ☐ Error: Unable to start program (.exe) – Access is deni...