-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(module:autocomplete): support standalone component #8193
feat(module:autocomplete): support standalone component #8193
Conversation
This preview will be available after the AzureCI is passed. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8193 +/- ##
=======================================
Coverage 91.70% 91.71%
=======================================
Files 519 520 +1
Lines 17887 17905 +18
Branches 2836 2839 +3
=======================================
+ Hits 16403 16421 +18
+ Misses 1182 1181 -1
- Partials 302 303 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -64,6 +65,8 @@ function normalizeDataSource(value: AutocompleteDataSource): AutocompleteDataSou | |||
preserveWhitespaces: false, | |||
changeDetection: ChangeDetectionStrategy.OnPush, | |||
encapsulation: ViewEncapsulation.None, | |||
standalone: true, | |||
imports: [BidiModule, NgClass, NgFor, NgStyle, NgTemplateOutlet, NzAutocompleteOptionComponent, NzNoAnimationModule], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: BidiModule is not necessary here. We don't use dir directive
@evgeniyefimov could you juste remove the BidiModule, after that LGTM and i will merge it |
LGTM |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Transfromed Autocomplete module to standalone simillar to #8037
Seems
NzInputModule
is unused. Didn't find any usage of this module in the scope of Autocomplete. Removed.Imported only required directives from @angular/common instead of whole CommonModule.