As you know AngularJS routing overwrites the relative urls
in a hyperlink so that AngularJS can handle all the requests. This sometimes
causes problems. In my scenario I want to download a file when user clicks on a
hyperlink in my grid. AngularJS is not sending this request to the server as a
result I am unable to serve the file user wants to download.
Here is my hyperlink code that I used in the grid.
<a href="/api/download/1">Download File</a>
As you see the above hyperlink calls an webapi which in
turns returns a word document that needs to be downloaded. As mentioned above
clicking on this hyperlink does not download the file.
The solution for this issue is very simple, we just need to
specify the target of the “a” tag as shown below
<a target="_self" href="/api/download/1">Download File</a>
Please see my other blog on how to download a file from Web
API
good and smart slution
ReplyDeleteSalesforce CRM offers enhanced management of end-to-end customer relationship management. Salesforce training in Hyderabad
ReplyDeleteOnline slots (Slot Online) is the launch of a gambling machine. Slot machine As stated above Used to make electronic games referred to as web-based slots, due to the development era, many people have turned to gamble with one another by computers. Will draw slot games to make web based gambling games Via the web network system Which players can play through the slot plan or will perform Slots through the service provider's site Which internet slots games are available in the form of participating in guidelines. It is similar to playing on a slot machine. Both realistic pictures as well as sounds are at the same time thrilling as they go to lounge in the casino ever.
ReplyDeleteบาคาร่า
ufa
ufabet
แทงบอล
แทงบอล
แทงบอล
ağrı
ReplyDeletevan
elazığ
adıyaman
bingöl
LQN
4ED72
ReplyDeleteSakarya Evden Eve Nakliyat
Kırklareli Evden Eve Nakliyat
Kırşehir Parça Eşya Taşıma
Kastamonu Evden Eve Nakliyat
Amasya Lojistik
4C4FC
ReplyDeleteNiğde Evden Eve Nakliyat
Kırıkkale Evden Eve Nakliyat
Uşak Evden Eve Nakliyat
Batman Lojistik
Ardahan Evden Eve Nakliyat
B7915
ReplyDeleteMuğla Evden Eve Nakliyat
Iğdır Lojistik
Çorum Lojistik
Denizli Parça Eşya Taşıma
Urfa Lojistik
D6404
ReplyDeleteEtlik Boya Ustası
Yozgat Lojistik
Bitrue Güvenilir mi
Antalya Şehir İçi Nakliyat
Manisa Lojistik
Yalova Şehir İçi Nakliyat
Ardahan Lojistik
Denizli Evden Eve Nakliyat
Mersin Lojistik