-
Notifications
You must be signed in to change notification settings - Fork 31
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
component generator does not respect --changeDetection Flag #94
Comments
Thanks for the issue! We'll get this fixed it asap |
@mhartington Looks like this is erroring in 2.0.0? #177 |
Seems like your schematics for components also doesnt support the |
Hi @dwieeb Will we have this soon or? |
Also looking for a fix. |
Is there any workaround until this is fixed? Edit: |
Hi, i am too using Ionic5 and using the workaround of putting this.changeRef.detectChanges() on my backend calls.... never had to do that in Ionic3 (which i used until a little time ago). I also tried to remove "defaultCollection" from angular.json, but that does not change anything... i am still forced to use detectChanges... P.S: this happens more in the iOS version of my app; under 'ionic serve' i do not observe this behaviour.... (and all works as in ionic3, without detectchanges instruction this is my ionic info: Ionic: Ionic CLI : 5.4.16 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 5.9.1 @angular-devkit/build-angular : 12.1.4 @angular-devkit/schematics : 12.1.4 @angular/cli : 12.1.4 @ionic/angular-toolkit : 4.0.0 Cordova: Cordova CLI : 10.0.0 (cordova-lib@10.1.0) Cordova Platforms : ios 6.2.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 6 other plugins) Utility: cordova-res : not installed native-run : not installed System: Android SDK Tools : 26.1.1 (/Users/demetriomortelliti/Library/Android/sdk) ios-sim : 8.0.2 NodeJS : v14.15.5 (/usr/local/bin/node) npm : 6.14.11 OS : macOS Big Sur Xcode : Xcode 13.0 Build version 13A233 |
Any updates on this? |
I use angular cli 18 rc4, ng g component test-push --changeDetection=OnPush generate same prob : changeDetection is not recognize |
cli 18 rc4, ng g component test-push --changeDetection=OnPush generate same prob : changeDetection is not recognize "dependencies": { |
Any updates on this? |
Maybe I don't see the complexity of it but isn't that just a really easy fix? This issue is now open for more than 5 years... |
Steps to Reproduce:
Output:
Generated component:
My
ionic info
:Other Information:
Using a Pure angular Project
ng g
generates the correct component.The text was updated successfully, but these errors were encountered: