我尝试在 Angular 8 表内标记文本,但一旦鼠标单击,应用程序就会启动导航。
<tr *ngFor="let item of items$ | async" routerLink="{{item.id}}">
<td>{{item.file.id}}</td>
<td>{{item.file.name}}</td>
</tr>
Run Code Online (Sandbox Code Playgroud)
是否可以告诉 Angular,我还想要标记和复制表行文本的可能性?换句话说,如果我标记了文本,要停止导航事件吗?
我想知道是否可以将 Angular gui(index.html、javascript、css、图像等)嵌入到可执行的 go 应用程序中。
例如,Spring Boot (Java) 可以通过将编译后的 Angular 文件复制到 src/main/resources/static 文件夹中来实现这一点,然后将这些文件提供到根路径上(前提是具有 spring-boot-starter-web依赖性)。
Go 1.16(2021 年 2 月)的新功能 //go:embed 是否能够对整个文件夹执行此操作?