Click here to Skip to main content
15,887,850 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: How browser javascript engine parse and execute javascript Pin
Mou_kol3-Aug-17 4:22
Mou_kol3-Aug-17 4:22 
Questionjavascript Pin
arnoldceaser24-Jul-17 1:06
arnoldceaser24-Jul-17 1:06 
AnswerRe: javascript Pin
Richard MacCutchan24-Jul-17 1:52
mveRichard MacCutchan24-Jul-17 1:52 
AnswerRe: javascript Pin
ZurdoDev24-Jul-17 7:07
professionalZurdoDev24-Jul-17 7:07 
AnswerRe: javascript Pin
W Balboos, GHB20-Sep-17 2:06
W Balboos, GHB20-Sep-17 2:06 
Questionhow to go to same page again? Pin
Member 1103130423-Jul-17 22:07
Member 1103130423-Jul-17 22:07 
AnswerRe: how to go to same page again? Pin
Afzaal Ahmad Zeeshan23-Jul-17 23:40
professionalAfzaal Ahmad Zeeshan23-Jul-17 23:40 
GeneralRe: how to go to same page again? Pin
Member 1103130424-Jul-17 0:27
Member 1103130424-Jul-17 0:27 
hy,

there are two blocks with same code because this is a way I check whether visitor changed the language of website. I have two navs ir my website: one stands for menu and the other for languages. So in my langs bar I must have links with
JavaScript
routerLinks
which have additional parameter "!":
HTML
<a [routerLink]="['/'+currPage,'!']" (click)="changeLang('en')">EN</a>
when the user clicks on selected language because the
JavaScript
ActivedRouter
only works if I apply to same component with different parameters.

This is why my language bar`s links routerLinks contain additional parameters, while the main menu doesn`t.
But this is a offtopic problem, though it is absolutely related with topic.

I didn`t try any
JavaScript
this.location.back()
because I try to find the solution which is more close to Rounting rather to history as I would like my user to be visiting the page using buttons and links. And I wonder where should I place
JavaScript
this.location.back()
in the code because I would like to go to same page using same link?
QuestionJavaScript or TypeScript: which one to really dig into? Pin
Foothill22-Jun-17 10:26
professionalFoothill22-Jun-17 10:26 
AnswerRe: JavaScript or TypeScript: which one to really dig into? Pin
gurdevs8013-Jul-17 20:26
gurdevs8013-Jul-17 20:26 
GeneralRe: JavaScript or TypeScript: which one to really dig into? Pin
Foothill14-Jul-17 4:17
professionalFoothill14-Jul-17 4:17 
AnswerRe: JavaScript or TypeScript: which one to really dig into? Pin
ZurdoDev14-Jul-17 4:50
professionalZurdoDev14-Jul-17 4:50 
AnswerRe: JavaScript or TypeScript: which one to really dig into? Pin
Nathan Minier17-Jul-17 1:41
professionalNathan Minier17-Jul-17 1:41 
GeneralRe: JavaScript or TypeScript: which one to really dig into? Pin
Foothill17-Jul-17 4:13
professionalFoothill17-Jul-17 4:13 
AnswerRe: JavaScript or TypeScript: which one to really dig into? Pin
Kornfeld Eliyahu Peter17-Jul-17 7:58
professionalKornfeld Eliyahu Peter17-Jul-17 7:58 
GeneralRe: JavaScript or TypeScript: which one to really dig into? Pin
Foothill17-Jul-17 8:31
professionalFoothill17-Jul-17 8:31 
GeneralRe: JavaScript or TypeScript: which one to really dig into? Pin
Kornfeld Eliyahu Peter17-Jul-17 8:41
professionalKornfeld Eliyahu Peter17-Jul-17 8:41 
GeneralRe: JavaScript or TypeScript: which one to really dig into? Pin
Foothill17-Jul-17 8:51
professionalFoothill17-Jul-17 8:51 
AnswerRe: JavaScript or TypeScript: which one to really dig into? Pin
Leng Vang24-Jul-17 6:44
Leng Vang24-Jul-17 6:44 
AnswerRe: JavaScript or TypeScript: which one to really dig into? Pin
Anjali Kapoor1-Aug-17 1:50
Anjali Kapoor1-Aug-17 1:50 
QuestionAngularJS: How to prove that service and factory is singleton Pin
Mou_kol12-Jun-17 22:29
Mou_kol12-Jun-17 22:29 
AnswerRe: AngularJS: How to prove that service and factory is singleton Pin
Afzaal Ahmad Zeeshan12-Jun-17 22:55
professionalAfzaal Ahmad Zeeshan12-Jun-17 22:55 
GeneralRe: AngularJS: How to prove that service and factory is singleton Pin
Mou_kol15-Jun-17 2:53
Mou_kol15-Jun-17 2:53 
QuestionHow do I define constructor in service and factory in Angular? Pin
Mou_kol12-Jun-17 3:37
Mou_kol12-Jun-17 3:37 
QuestionAngularJS: Why people prefer factory to share data between controllers Pin
Mou_kol12-Jun-17 3:36
Mou_kol12-Jun-17 3:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.