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

Idea: our-text-if #54

Open
drpeck opened this issue Feb 17, 2023 · 2 comments
Open

Idea: our-text-if #54

drpeck opened this issue Feb 17, 2023 · 2 comments

Comments

@drpeck
Copy link
Contributor

drpeck commented Feb 17, 2023

Rather than have:

<h1 our-if="@string.IsNullOrEmpty(Model.Heading) == false">
    @Model.Heading
</h1>

you can just have

<h1 our-if-text="@Model.Heading" />
@drpeck
Copy link
Contributor Author

drpeck commented Feb 17, 2023

Happy to supply a PR if approved.

Thank for producing this library!

@warrenbuckley
Copy link
Member

Seems a good idea to me @drpeck
If you want to do a PR with it as well, even better 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants