差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
it:framework:angurlar [2022-07-29 14:47] goldentianyait:framework:angurlar [2023-05-21 09:53] (当前版本) – [搜索结果] goldentianya
行 1: 行 1:
-====== Angular ======+====== Angular 进阶 ======
  
 ===== 国际化 i18n ===== ===== 国际化 i18n =====
  
 [[https://v6.angular.live/guide/i18n|官方文档]] [[https://v6.angular.live/guide/i18n|官方文档]]
 +
 +=====HTTP =====
 +
 +HTTP 流式传输:[[https://mlog.club/article/5834185|使用Angular从受保护的端点流式传输视频]]
 +
 +===== 搜索结果 =====
 +  
 +
 +<WRAP group>
 +<WRAP third column>
 +perplexity.ai
 +  * [[https://www.perplexity.ai/search/c35c62df-231c-41ef-b315-207ef64fdecb?s=c|如何创建一个创建库项目]] / [[https://indepth.dev/posts/1193/create-your-standalone-angular-library-in-10-minutes|Library]]
 +</WRAP>
 +
 +<WRAP third column>
 +mail.simperator.com
 +  * [[https://mail.simperator.com/#/mailbox/1b36096360cefe38bc5928513ba62af2|动态 Dom]]
 +</WRAP>
 +
 +<WRAP third column>
 +notion.co
 +  * [[https://www.notion.so/maiernte/Angular-a4eb920b22bd4b288f41c50b981eb810?pvs=4#0db82f0007c04535a47928764de25c1f|导航退回上一级]]
 +</WRAP>
 +</WRAP>
  
 ===== 问题集 ===== ===== 问题集 =====
行 9: 行 33:
 **问题一:404报错** **问题一:404报错**
  
-刷新页面的时候出现 404 错误。有两个解决方案+Angular 刷新页面的时候出现 404 错误。有两个解决方案, <color #ed1c24>方法二测试有效</color>
 <code | 方案一> <code | 方案一>
 import { LocationStrategy, HashLocationStrategy } from '@angular/common'; import { LocationStrategy, HashLocationStrategy } from '@angular/common';
行 23: 行 47:
 </code> </code>
  
 +**问题二:运行时出错**
 +以下代码在 ng serve 时没有问题,但 ng build 并推送到服务器之后就出现运行时错误。
 +
 +<code | download>
 +if(options?.headers !== null){
 +  (options?.headers as any).Authorization = `Bearer ${BaseSetting.AccessToken}`
 +}
 +</code>
 +
 +需要更改为
 +<code | download>
 +var hd:any = options?.headers
 +hd.Authorization = `Bearer ${BaseSetting.AccessToken}`
 +</code>
it/framework/angurlar.1659106029.txt.gz · 最后更改: 2022-07-29 14:47 由 goldentianya
回到顶部
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0