Skip to content
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

Modernize readme examples #691

Merged
merged 1 commit into from
Oct 26, 2024
Merged

Modernize readme examples #691

merged 1 commit into from
Oct 26, 2024

Conversation

SergeAstapov
Copy link
Contributor

Readme has a few pre-Octane examples and patterns which we should modernize

Copy link

@acorncom acorncom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good here, thanks for your work @SergeAstapov


```js
let changeset = Changeset(model, validatorFn, validationMap, { skipValidate: true });
```

```hbs
{{#let (changeset model this.validate skipValidate=true) as |changesetObj|}}
{{#let (changeset this.model this.validate skipValidate=true) as |changesetObj|}}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.model, and all usages of the word "model" should be changed to be "this.data", imo.

Copy link

@NullVoxPopuli NullVoxPopuli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

improvements!

@SergeAstapov SergeAstapov merged commit 8c59713 into master Oct 26, 2024
14 checks passed
@SergeAstapov SergeAstapov deleted the update-readme branch October 26, 2024 01:30
@github-actions github-actions bot mentioned this pull request Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants