-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(angular-onboarding): Add standalone app docs #77302
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(angular-onboarding): Add standalone app docs #77302
Conversation
label: t('App Type'), | ||
defaultValue: AppType.STANDALONE, | ||
items: [ | ||
{ | ||
label: 'Standalone', | ||
value: AppType.STANDALONE, | ||
}, | ||
{ | ||
label: 'Module', | ||
value: AppType.MODULE, | ||
}, | ||
], |
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.
@Lms24 what would be the proper label for it?
Can we add some postfix to Standalone
and Module
to make it clearer?
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.
With "postfix", do you mean a tootlip-like element? Then I'd add something like
- standalone: "Use this if you have an
app.config.ts
file" - module: "Use this if you have an
app.module.ts
file"
Some other ideas for the button names:
- App Config / App Module
- Standalone Config / Module-based Config
- Standalone Config / NGModule Config
- App Config / NGModule Config
- Standalone Conponent Config / NGModule-based Config
After thinking a bit about it, I kinda like 3 and 4. Makes it really clear that we're talking about Angular's NGModule
s. WDYT?
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.
Or can we do something like
"I have an [app.config.ts]|[app.module.ts] file", so that the selection more or less becomes part of a sentence? Hope this makes sense 😅
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.
Was talking about changing the button label 👍
Will go with 4 then. that is the clearest for me as someone who is not super familiar with Angular.
|
||
const appInit = isModuleApp(params) | ||
? ` | ||
enableProdMode(); |
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.
@Lms24 Why are we suggesting to enable prod mode?
According to the Angular docs this is discouraged. Maybe this deserves a comment?
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.
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #77302 +/- ##
===========================================
+ Coverage 57.38% 78.09% +20.71%
===========================================
Files 6945 6944 -1
Lines 308220 307754 -466
Branches 50449 50385 -64
===========================================
+ Hits 176883 240353 +63470
+ Misses 126537 61036 -65501
- Partials 4800 6365 +1565 |
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.
code looks good to me
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.
Nice, thanks a lot Arthur! LGTM (and answered your questions).
I'll follow up with making the changes in docs once this is merged.
Add platform option to
javascript-angular
that allows to switch between standalone / module app initialization.Screen.Recording.2024-09-11.at.11.32.54.mov
Closes #77134