-
Notifications
You must be signed in to change notification settings - Fork 607
fix: issues for angular signals api #1750
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: d016613 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
View your CI Pipeline Execution ↗ for commit d016613.
☁️ Nx Cloud last updated this comment at |
|
||
|
||
|
||
|
||
|
||
import { Builder, builder } from '@builder.io/sdk'; | ||
import { BuilderBlock as BuilderBlockComponent, BuilderBlocks, get, set } from '@fake'; | ||
|
||
|
||
|
||
|
||
@Component({ | ||
selector: 'form-component',standalone: true,imports: [CommonModule, BuilderBlockComponent, BuilderBlocks],template: \`<form | ||
[attr.validate]=\\"validate()\\" | ||
#formRef | ||
[attr.action]=\\"!sendWithJs() && action()\\" | ||
[attr.method]=\\"method()\\" | ||
[attr.name]=\\"name()\\" | ||
(submit)=\\"onSubmit($event)\\" | ||
#_root | ||
>@if(builderBlock() && builderBlock().children){ @for (block of | ||
builderBlock()?.children;track trackByBlock0(index, block);let index = $index) | ||
{ | ||
<builder-block-component | ||
[block]=\\"block\\" | ||
[index]=\\"index\\" | ||
></builder-block-component> | ||
} } @if(submissionState() === 'error'){ | ||
<builder-blocks | ||
dataPath=\\"errorMessage\\" | ||
[blocks]=\\"errorMessage()\\" | ||
></builder-blocks> | ||
} @if(submissionState() === 'sending'){ | ||
<builder-blocks | ||
dataPath=\\"sendingMessage\\" | ||
[blocks]=\\"sendingMessage()\\" | ||
></builder-blocks> | ||
} @if(submissionState() === 'error' && responseData()){ | ||
<pre class=\\"builder-form-error-text pre\\"> |
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.
@nmerget can we please add the htmlWhitespaceSensitivity
in ToAngularOptions, this formatting will look a bit odd. It looks like the default is 'css' can we keep this instead of 'ignore' and only format the template? --html-whitespace-sensitivity (defaults to css)
https://prettier.io/blog/2018/11/07/1.15.0.html#whitespace-sensitive-formatting
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.
apart from the formatting part, this PR LGTM!
Description
Please provide the following information:
Minor fixes for Angular
api=signals
Make sure to follow the PR preparation steps in CONTRIBUTING.md before submitting your PR:
yarn fmt:prettier
.yarn test:update
yarn g:changeset
and follow the CLI instructions. Alternatively, use the Changeset Github Bot to create the file.