Skip to content

Commit 619cc57

Browse files
authored
docs(angular): vscode settings for standalone usages (#3233)
1 parent a1ae5fb commit 619cc57

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/angular/build-options.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,14 @@ import { Component } from '@angular/core';
484484
export class TestComponent {}
485485
```
486486

487+
10. If you are using VSCode it is recommended to ignore the `@ionic/angular/common` and `@ionic/angular` module specifiers for import recommendations.
488+
489+
```json title=".vscode/settings.json"
490+
{
491+
"typescript.preferences.autoImportFileExcludePatterns": ["@ionic/angular/common", "@ionic/angular"]
492+
}
493+
```
494+
487495
### NgModule-based Applications
488496

489497
Follow these steps if your Angular application is still using the NgModule architecture, but you want to adopt Ionic UI components as standalone components now.
@@ -653,3 +661,11 @@ import { TestComponent } from './test.component';
653661
declarations: [TestComponent]
654662
})
655663
```
664+
665+
10. If you are using VSCode it is recommended to ignore the `@ionic/angular/common` and `@ionic/angular` module specifiers for import recommendations.
666+
667+
```json title=".vscode/settings.json"
668+
{
669+
"typescript.preferences.autoImportFileExcludePatterns": ["@ionic/angular/common", "@ionic/angular"]
670+
}
671+
```

0 commit comments

Comments
 (0)