【发布时间】:2018-11-15 07:39:54
【问题描述】:
下午好,
我有两个密切相关的问题: 1.当我点击以下代码时:
HTML
<a mat-raised-button
class="sample-button"
color="primary"
href="{{card.ButtonURL}}"
>{{card.Label}}</a>
对象引用(打字稿):
{
Name:'Test PDF', cols: 1, rows: 1,
Label: 'Test PDF',
ButtonURL: '../pdfs/test.pdf',
imageURL: 'https://png.icons8.com/material/480/00457C/upload-link-document.png',
imageDesc: 'Test Description',
},
为什么<a mat-raised-button href="../pdfs/test.pdf"></a>更改URL(见图4)而不是在新窗口中打开test.pdf?
- 如果我有一个调查,并且想链接到一个文件以从我的 Web 服务器下载,是否需要在 Angular Web 应用程序中进行配置,或者我可以只指向服务器上的文件路径吗?李>
谢谢你的帮助,我是新手。
图片:
【问题讨论】:
标签: html angular typescript angular-material2