SHARE
TWEET

Untitled

a guest Oct 20th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //  ngOnInit() se ejecuta al momento que recarga la página
  2. ngOnInit() {
  3.         this.route.queryParams.subscribe((params: Params) => {
  4.           this.var1 = params['val1'];
  5.           this.var2 = params['val2'];
  6.           console.log("Result: " + this.var1 + " - " + this.var2);
  7.         });
  8.  
  9.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top