Hi,
Button1(){
this.router.navigate(['/home']);
Button2(){
this.router.navigate(['/home']);
Button3(){
this.router.navigate(['/home']);
I need to optimize above highlighted code.
Thanks!!!
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Muthu KumarPosted Feb 18, 2019, 11:06 PM
Here is an optimized dynamic button creation working example,
I hope its helpful to you.
Amit Kumar SinghPosted Feb 13, 2019, 4:48 AM
Madan ShekarPosted Feb 13, 2019, 4:40 AM