Can i go to an external link on a button click in ember


#1

is it possible to call an action on a button click which navigates the user to an external link (like bbc.com for example). I thought the transitionTo will only know the routes declared in router.js


#2

You have access to the window object.


#3

can you please give an example, sorry i haven’t seen an example calling plain javascript code from with in ember actions etc


#4

#5

got it. thanks Just did window.open(“google.ca”);