TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Amit Kumar Singh
401
4k
201.7k
How to optimize below line of code
Feb 13 2019 4:29 AM
Hi,
<button (click)='Button1'></button>
<button (click)='Button2'></button>
<button (click)='Button3'></button>
Button1(){
this.router.navigate(['/home']);
Button2(){
this.router.navigate(['/home']);
Button3(){
this.router.navigate(['/home']);
I need to optimize above highlighted code.
Thanks!!!
Reply
Answers (
3
)
Fill Textbox automatically from typing into another textbox
What is the best way to learn angular 7?