Hi,  I am new here and new and angular. Could you help me please ?

I would like to use a function from another function but it doesn't work

In my function "updateData", I try to re-call my function "getInitData" but 
it don't work.
Have you got an idea please ?


*ngOnInit() { *
*     this.getInitData(); *
* } *

*getInitData() { *
*     this.route.params.subscribe((params: Params) => { 
this.model=this.userData; }); *
* }  *  

*updateData() { *
*     //code to update my data ... here it's ok*
*     this.getInitData(); *
* } *


Thanks a lot

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/91350bfb-3723-4be6-ab28-aea392fdffccn%40googlegroups.com.

Reply via email to