In the tutorial documentation located at:/docs/en/tutorials/book-store/part-02.md TheBookComponentcode block is missing thestandalone: falseproperty in the@Componentdecorator. This causes errors when following the tutorial in an Angular 15+ project, since Angular now expects astandaloneflag for co...
--standalone是 Angular 14 引入的一个新选项,它允许开发者在创建组件、指令、管道等时选择是否使用独立(standalone)模式。独立模式意味着这些元素可以独立于 NgModule 使用,有助于简化应用结构,提升模块的灵活性和可维护性。 设置为true时,表示创建的应用程序、组件或服务不需要 NgModule,可以单独存在。 设置为fals...
之前尝试使用 angular 19 提供的迁移命令自动迁移,但迁移失败,详见https://q.cnblogs.com/q/150498 ng g @angular/core:standalone 改为手动迁移,记录一下迁移过程。 删除标记与 NgModule 文件 删除所有standalone: false,一共198个 删除所有 NgModule 文件,一个84个文件 find . -name *.module.ts -execgit...
Which @angular/* package(s) are the source of the bug? Don't known Is this a regression? Yes Description After upgrading from Angular 19.0.x to 19.1.x, I am encountering an error related tongTemplateOutletwithinng-containerelements in my non-standalone components when HMR (Hot Module Repla...
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module. Error: A circular dependency was detected. Warning: At least one delay-load dependency module was not found. Warning: At least one module has an unresolved import d...
<ion-reorder-group [disabled]="false" (ionItemReorder)="handleReorder($event)"> @for (stop of stops; track stopIndex; let stopIndex = $index) { <ion-reorder> <ion-item> <ion-badge slot="start">{{ stop.badge }}</ion-badge> <ion-label>{{ stop.name }}</ion-label> </ion-ite...
standalone: false, ~~~ name: 'pipe-name' ~~~ }) ~~ class Test {} ``` --- ✅ - Toggle examples of correct code for this rule ### Default Config ```json @@ -237,11 +246,10 @@ class Test {} ### ❌ Invalid Code ### ✅ Valid Code ```ts @Directive({ ...
close </ng-template> `, // eslint-disable-next-line @angular-eslint/prefer-standalone standalone: false imports: [STComponent, STRowDirective] }) export class TestComponent { @ViewChild('st', { static: true }) readonly comp!: STComponent; @@ -467,6 +466,7 @@ export class TestComp...
// Remove the standalone property altogether if it was set to false consttokenAfter=context.sourceCode.getTokenAfter( standalone.parent, ); // Remove the trailing comma, if present constremoveStart=standalone.parent.range[0]; letremoveEnd=standalone.parent.range[1]; ...
"inlineCritical": false } }, }, "budgets": [ { "type": "initial", @@ -55,12 +55,6 @@ "maximumError": "4kb" } ], "fileReplacements": [ { "replace": "angular/src/environments/environment.ts", "with": "angular/src/environments/environment.prod.ts" } ], "outputHashing": "...