01 2025 档案
摘要:这是园子博客后台从 angular 15 升级到 angular 19 后遇到的一个问题。博客后台「随笔 」的侧边栏会显示随笔的分类列表 ,通过这个列表的上下文菜单可以修改分类名称,升级后测试时发现一个问题,修改分类名称后分类列表没有随之更新
阅读全文
摘要:最近在将园子博客后台的前端框架从 angular 15 升级至 angular 19,这边博文记录的是迁移至 Standalone Component 的过程。之前尝试使用 angular 19 提供的迁移命令自动迁移,但迁移失败,改为手动迁移,记录一下迁移过程。
阅读全文
摘要:记录一下学习使用 ChildContent 的试验代码,用的是 Angular 19,AppComponent 是 parent component, SidebarComponent 是 child component,SidebarBlogCategoriesComponent 是 projected component,代码1:使用 ng-content 在 child component 中显示 projected component 的内容
阅读全文