I'm moving some scripts from an mvc view to a typescript file.
All is going fine but I have a question: normally inside the view I have
url: "~/H3g/PrezzoTerminale/" + promoId,
and the ~ is parsed by the razor engine, but if I move in the typescript file, and in the external js
file that typescript generates, how can be sure that the address is always translated?
Just removing the ~ usually creates me problems if i move this in a subdirectory.