title: Angular 7 & ionic 4 Router - Pass the method
body: <p>I am implmenting the angular router in the hybrid mobile application.(Upgrading from ionic 3 to 4). One my scnerio, I want to pass the method as a query parameter to another page. For example, Call the page "studentEditPage" from "Student Detail Page" and passing the "Update" method name to student edit page.  Before poping the "StudentEditPage", it calls the update method then pop. I am tring to pass the method in the queryparam in navigate but it does not accept it in ionic 4. Are we able to pass the method as a param in the queryparameters</p>
  
  <p>From StudentDetailPage</p>
  
  <pre><code>  let navigationExtras : NavigationExtras = {
        state : {
          param : { detail: "editcategory", value: studentName, callback: this.updateStudentCallback, }
        }
      }
      that.router.navigate(['studentDetailsPage'],navigationExtras); Here "this.updateStudentCallback" as a method.
  </code></pre>
  
  <p>From StudentEditPage:</p>
  
  <pre><code>    this.updateStudentCallback(tempEmpData).then(() =&gt; {
      this.navigate.router(['studentEditPage'])
  });
  </code></pre>
  
  <p>I have googled and searched the angular posts but unable to get the proper results. THanks in Advance.</p>